Pre loader

2.0 difficulty at the beginning

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

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.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies