visual studio 2010 - Using 32-bit dll on 64-bit system shows 0x8007000B Error -
i have use third party dll in application. dll 32-bit , system using 64-bit os.
i have imported 32-bit dll in dotnet application (framework-4.5) below
[dllimport("sample.dll", entrypoint = "add", charset = charset.ansi, callingconvention = callingconvention.stdcall)] public static extern int add(int ia, int ib); in iis 7.5 - have set "enable 32-bit application" "true".
and tried setting compiler manager - x86, x64 , cpu.
but attempt results in same error as
attempt made load program incorrect format. (exception hresult: 0x8007000b) how resolve issue......
if try run 32-bit applications on iis 7 (and/or 64-bit os machine), same error. so, iis 7, right click on applications' application pool , go "advanced settings" , change "enable 32-bit applications" "true".
restart website , should work.
Comments
Post a Comment