Problem with Mapscript C# on Windows XP 64-bits!
Tamas Szekeres
szekerest at GMAIL.COM
Fri Aug 17 05:28:46 PDT 2007
Paul,
Your application probably runs against the 64 bit version of the .NET runtime.
If you compile code to produce a Win32 image on a Win64 platform the default
options does not force to use the 32 bit version of the framework.
Therefore you might want to add '/platform:x86' to your csc command
line when compiling the
your application. (if not specified the default option is /platform:any)
In the Visual Studio IDE you can change the "Platform target" to x86
in the application settings Build configuration page.
Best regards,
Tamas Szekeres
2007/8/17, Paul james <pauljame at gmail.com>:
> Hello people!
> I´m trying to make my app run on WIN XP 64 bits...
> I used the same dlls from my 32 bits environment ...
>
> I got this exception on
> mapaObj = new mapObj(path);
>
> An attempt was made to load a program with an incorrect format. (Exception
> from HRESULT: 0x8007000B) Description: An unhandled exception occurred
> during the execution of the current web request. Please review the stack
> trace for more information about the error and where it originated in the
> code.
>
> Exception Details: System.BadImageFormatException: An attempt was made to
> load a program with an incorrect format. (Exception from HRESULT:
> 0x8007000B)
>
> [BadImageFormatException: An attempt was made to load a program with an
> incorrect format. (Exception from HRESULT: 0x8007000B)]
> SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_mapscript(ExceptionDelegate
> applicationDelegate, ExceptionDelegate arithmeticDelegate, ExceptionDelegate
> divideByZeroDelegate, ExceptionDelegate indexOutOfRangeDelegate,
> ExceptionDelegate invalidOperationDelegate, ExceptionDelegate ioDelegate,
> ExceptionDelegate nullReferenceDelegate, ExceptionDelegate
> outOfMemoryDelegate, ExceptionDelegate overflowDelegate, ExceptionDelegate
> systemExceptionDelegate) +0 SWIGExceptionHelper..cctor() +1049
>
>
> Any solutions?
>
> []´s
>
More information about the MapServer-users
mailing list