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

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

0
0

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
HResult=-2146234304
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)
Source=mscorlib
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
(Fully-specified)
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=4.0.0.0, 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.

StackTrace:
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)
InnerException:

  • You must to post comments
0
0

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() {
        InitializeComponent();

        //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,
Andrew

Images
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.