none
Could not load file or assembly which was compiled for a different processor. RRS feed

  • Question

  • I am getting error while loading one dll file using reflection. Error = Could not load file or assembly 'Secugen.FDxSDKPro.Windows version=1.0.0.0. Culture=neutral, PublicKeyToken=null'.This assembly was compiled for a different processor.

    I'm using .Net Framwork 4.0, Visual Studio 2012

    Monday, December 9, 2013 10:16 AM

Answers

  • Try compiling the project for x86 compatible mode.  The dll definition may need the CDECL parameter added.

    [dllimport("mylib.dll",CallingConvention=CallingConvention.Cdecl)]
    public static extern int funcwithcallback(del foo);

    jdweng

    Monday, December 9, 2013 11:04 AM