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

0
0

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.TryApplyDirectXRenderer="True"
                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.

Version
5.2.0.11680
  • You must to post comments
1
1

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

  • 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
    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
0
0

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.