I'm trying to embed an AIMS 2012 viewer in a webpage. I'm following the instructions in Daniel Du's webcasts. It doesn't matter if I embed a basic layout or a flex layout. I get the same error message when I try to browse the page - "Could not load file or assembly 'MapGuideDotNetApi, Version=184.108.40.20602, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format."
I found some references to this error on the OSGeo website for MapGuide OS but not sure if it applies to AIMS 2012. I know that the dll referenced in the error message is only used for backwards compatibility. Since this is a brand new web app, I'm not concerned about backwards compatibility. So I thought I could just remove the offending dll from my website "bin" folder. But then I get the same error message, except now it references one of the new OSGeo.MapGuide dlls.
Has anyone come across this? Anybody know how to fix it?
It's most likely a 32-bit/64-bit problem. One of these things doesn't match:
Could you elaborate on how to determine which is which
- You are using 64-bit MapGuide dlls from a 32-bit web application or vice versa
- Your web application is configured to be 32-bit in IIS, but using 64-bit dlls or vice versa
Access a broad range of knowledge to help get the most out of your products and services.
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.
Upgrading to a 2015 product? Make sure to check these out 1st!