Hi,
I created an adhoc datasource using an internal nuget.
When loading i get the following error:
Error trapped: Error thrown in implementation of GetNextPage: Could not load file or assembly 'DataMiner.DOM, Version=1.1.24.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
I found this question around this topic, so i moved the dll to the files directory but i still get this error.
It's giving this error on at least versions 10.4.10.0-14882 & 10.4.5.0-14239
Any advice?
Hi Gerwin,
This error usually occurs when trying to reference an assembly that is targeting a different CPU architecture (32 vs. 64 bit).
Can you check whether your internal Nuget is either targeting Any CPU, or x86/x64 depending on the OS where DataMiner (more specifically the SLHelper process) is running.


Ok, then SLAutomation is probably running 32 bit while SLHelper is running 64 bit. Is it possible to change the PlatformTarget of the nuget to AnyCPU?
Then it should be compatible with both.

I'll give it an try.
Well the internal nuget is working with the normal automation engine.
But the target in the nuget is x86 <PlatformTarget>x86</PlatformTarget>