Pre loader

Could not load file or assembly 'SciChart.Drawing.DirectX'

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


I just purchased a license for WPF 2D+3D (Pro) and tried to use a scichartsurface without DirectX and it works fine but as soon as I include

                s3D:DirectXHelper.FallbackType="{x:Type s:HighSpeedRenderSurface}"

I get the following runtime error:

System.Windows.Markup.XamlParseException: ‘Could not load file or assembly ‘SciChart.Drawing.DirectX, PublicKeyToken=b55dd9efe817e823′ or one of its dependencies. The system cannot find the file specified.’

What am I doing wrong? I installed the newest Scichart version on the Nuget channel. In Nuget I can see that “SciChart”, “SciChart3D”, “SciChart.DirectX” and a bunch of SharpDX libraries were installed.

  • You must to post comments

Matt contacted us on tech support, and these are the steps to ensure you can build with SciChart.DirectX.dll.

1.) Obviously make sure SciChart.DirectX.dll is referenced (via NuGet or otherwise)
2.) SciChart v5.2.0 now requires SharpDX v4.2.0 (previous version required v4.0.1). Ensure SharpDX is updated
3.) There are two native DLLs from SharpDX that also must be included in the output folder.

Full instructions are found in ‘Creating and Deploying Applications with DirectX’ as well as this video:

Best regards,

  • bbmat
    Andrew, the explanation and video helped solve the problem. However, it only worked after adding the additional dll files besides the two sharpdx_direct3d11_1_effects_x64/86.dll: SharpDx.dll, SharpDX.Direct3D11.dll, Scichart.Drawing.DirectX.dll. My recommendation would be to include those additional files in your deployment walk-through as this additional step ensures that the native SharpDX references are added as well. As you described, all files have their “Copy to Output Directory” property set to “Copy always”
  • Andrew Burnett-Thompson
    If SharpDX libraries are referenced, they will automatically be copied to output directory. Or, if SciChart.DirectX is referenced by nuget then SharpDX will automatically be referenced and copied. I’m assuming you have some kind of plugin architecture (no direct reference)?
  • You must to post comments

Make sure your project does in fact have a reference to SciChart.Drawing.DirectX. Also, try to clean/rebuild your project.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.