Native dll

Trying to import a native dll  in our custom code like 

[DllImport("native.dll", CallingConvention = CallingConvention.Cdecl)]

The code was working fine with the webserver but this code should be executed as a job when we converted this as a service we are seeing the below exception

An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)



spell check
[edited by: Satish Kumar Polampalli at 9:11 AM (GMT 0) on Thu, Oct 28 2021]
Parents Reply
  • Former Member
    0 Former Member in reply to Satish Kumar (3sides)

    Are you trying to run a job service locally that Telligent Saas communicates with? or is this just for dev?

    Either way, this error seems to primarily relate to a mismatch in bitness between a dll and the environment. Ensure all components are loaded in environments with matching bitness. Also ensure any customizations are loaded to the web server and the job server for consistency.

Children