I am always asked questions like below:
I am working with Autodesk Infrastructure Map Server 2012 64bit, but I always get a compile error “could not load file or assembly”, there is not problem when running.
The error message could be:
Could not load file or assembly 'OSGeo.MapGuide.Foundation, Version=2.3.0.4202, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Could not load file or assembly 'MapGuideDotNetApi' or one of its dependencies.
How could we solve this problem?
Firstly, we should copy *all* the files from MapGuide WebExtension folder(C:\Program Files\Autodesk\Autodesk Infrastructure Web Server Extension 2012\www\mapviewernet\bin) to <yourApp>\bin folder.
Secondly, for AIMS2012 64bit, we can use WebApplication instead of Website when creating project in Visual Studio, and create web application in local IIS, then use “attach to process” to debug. For more information, please refer to the webcast, we have a live demonstration about how to create a AIMS2012 64bit based web application and how to debug.
Video : Autodesk® Infrastructure Map Server 2012 API Webcast
Recorded version of the Autodesk® Infrastructure Map Server 2012 API webcast
View online | Download
Hope this helps.