[mapguide-users] Compile Error: An attempt was made to load a program with an incorrect format.

Dave Wilson dave.wilson at autodesk.com
Thu Mar 10 10:36:53 EST 2011


You can't mix 32 and 64 bit apps together under IIS, at least under the same app pool. I'm less sure of apache.

Dave

-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Jason Birch
Sent: Wednesday, March 09, 2011 6:39 PM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Compile Error: An attempt was made to load a program with an incorrect format.

I believe that the bitness (heh) is set in the app pool's advanced
properties... off the top of my head...

On 2011-03-09, Jackie Ng <jumpinjackie at gmail.com> wrote:
> It is definitely a 32/64 bit mismatch.
>
> Check the following:
>  - The bitness of the MapGuideDotNetApi and OSGeo.MapGuide dlls using
> corflags.exe (this should be 64-bit already for the x64 installer)
>  - The bitness of any third party .net libraries
>  - The bitness of the mapguide virtual directory and its child directories
> in IIS. I can't locate the setting for you but there is a flag that tells
> the web application to run as a 32-bit or 64-bit web application.
>
> All should be 64-bit (and/or Any CPU for .net dependencies)
>
> - Jackie
>
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Compile-Error-An-attempt-was-made-to-load-a-program-with-an-incorrect-format-tp6153978p6156138.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


More information about the mapguide-users mailing list