Devo utilizzare una DLL di terze parti nella mia applicazione. La DLL è a 32 bit e il sistema che sto usando è un sistema operativo a 64 bit.Utilizzo di dll a 32 bit su sistema a 64 bit mostra 0x8007000B Errore
Ho importato la DLL a 32 bit nella mia applicazione DotNet (quadro-4.5), come di seguito
[DllImport("Sample.dll",
EntryPoint = "Add",
CharSet = CharSet.Ansi,
CallingConvention = CallingConvention.StdCall)]
public static extern int Add(int iA, int iB);
In IIS 7.5 - Ho impostato "Enable 32-bit Applicazione" come "True".
E anche provato a impostare il Gestore compilatore come - X86, x64 e qualsiasi CPU.
Ma tutti i risultati tentativo stesso errore
An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
Come risolvere questo problema ......
può essere che si può trovare la risposta qui –
Aakash
possibile duplicato [Come eseguire VS 2010 Local IIS in modalità 32 bit] (http://stackoverflow.com/questions/10711498/how-to-run-vs-2010-local-iis-in-32-bit-mode) –
vedere questo post sull'errore 0x8007000B http://stackoverflow.com/questions/18007967/net-framework-error-hresult-0x8007000b/36353971#36353971 – JinSnow