SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components


I’m having some difficulty getting 2.0 to run. (.net 4.0/64bit). I have created a simple windows forms app that attempts to
1) set the license key
2) instantiate a SciChartSurface

The SciChartSurface.SetLicenseKey method (seems) to work okay, but when I try to instantiate the surface I get the dreaded .dll file not found exception. I have checked twice and I am using the correct .dll for 4.0/64bit. (btw I have tried referencing the .dll directly and through the GAC)

ideas? Could you perhaps verify with the .csproj file provided?
exception follows ::

System.IO.FileLoadException occurred
Message=Could not load file or assembly ‘Abt.Controls.SciChart.Wpf, Version=2.1.4951.42832, Culture=neutral, PublicKeyToken=b55dd9efe817e823’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
FileName=Abt.Controls.SciChart.Wpf, Version=2.1.4951.42832, Culture=neutral, PublicKeyToken=b55dd9efe817e823
FusionLog==== Pre-bind state information ===
LOG: User = LhoTse\Dan
LOG: DisplayName = Abt.Controls.SciChart.Wpf, Version=2.1.4951.42832, Culture=neutral, PublicKeyToken=b55dd9efe817e823
LOG: Appbase = file:///C:/Development/Wild_Development/Wild_2013_3/Wild2/SciChart_2.0_simple_test/bin/x64/Debug/
LOG: DEVPATH = C:\ProgramData\Red Gate.NET Reflector\DevPath
LOG: Initial PrivatePath = NULL

Calling assembly : PresentationFramework, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35.

LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Development\Wild_Development\Wild_2013_3\Wild2\SciChart_2.0_simple_test\bin\x64\Debug\SciChart_2.0_simple_test.vshost.exe.config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Abt.Controls.SciChart.Wpf, Version=2.1.4951.42832, Culture=neutral, PublicKeyToken=b55dd9efe817e823
LOG: Attempting download of new URL file:///C:/Development/Wild_Development/Wild_2013_3/Wild2/SciChart_2.0_simple_test/bin/x64/Debug/Abt.Controls.SciChart.Wpf.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Revision Number
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.

at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

  • You must to post comments

Hi Dan,

I’ve quickly investigated this. I added this code to the Form and I can see a SciChartSurface no problem on a Windows Forms form:

public partial class Form1 : Form {
    public Form1() {

        //debug only
        SciChartSurface sf = new SciChartSurface()
                XAxis = new NumericAxis(),
                YAxis = new NumericAxis(),

        ThemeManager.SetTheme(sf, "Chrome");

        this.Controls.Add(new ElementHost() { Child = sf, Dock = DockStyle.Fill});

I think the difference is you are running Reflector professional edition, which will try to load all assemblies at startup so you can debug into them. SciChart’s DLL is encrypted and prevents debugging so its likely its throwing an exception when Reflector tries to load it.

Perhaps you can exclude SciChart DLL from the Reflector targets and see if it works?

Best regards,

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.