<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>[mapguide-users] Compile Error: An attempt was made to load a
program with an incorrect format.</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">John,</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">Did you ever get this issue</FONT></SPAN><SPAN LANG="en-us"><B> <FONT FACE="Calibri">(</FONT></B></SPAN><SPAN LANG="en-us"><B><FONT FACE="Calibri">[mapguide-users] Compile Error: An attempt was made to load a program with an incorrect format</FONT></B></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">.</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">) resolved?</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> I am running into a similar situation and am having no luck getting answers. I tried following</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"></FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">Jackie</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> NG</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">’</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">s suggestions which are for Maestro and MapGuide OS where our situation involves MG Studio 201</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">1</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> and MapGuide OS</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> 2.2</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">. Though he claims that the setup should be very</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">similar</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> there are</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">big enough differences to make the setup difficult to execute.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">(see</FONT></SPAN><SPAN LANG="en-us"> </SPAN><A HREF="http://themapguyde.blogspot.com/2010/10/using-maestro-in-native-mode-with.html"><SPAN LANG="en-us"><U><FONT COLOR="#0000FF" FACE="Calibri">http://themapguyde.blogspot.com/2010/10/using-maestro-in-native-mode-with.html</FONT></U></SPAN><SPAN LANG="en-us"></SPAN></A><SPAN LANG="en-us"><FONT FACE="Calibri">)</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">PS, I ended up emailing you because the thread offered me no way to</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">post the question but did give me your email address. If you like you can post your answer together with the question so other people can benefit from this as well.</FONT></SPAN><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">Also, the error I get after following the suggestions is:</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">“</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">Could not load file or assembly 'MapGuideDotNetApi-2.2' or one of its dependencies</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">”</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> and I was</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">n</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">’</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">t able to implement</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">Jackie</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">’</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">s</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> final suggestion:</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">“</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">Now edit your app.config/web.config to redirect the currently referenced MapGuideDotNetApi.dll to our signed version</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">”</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> since I wasn</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">’</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">t able to find the</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">illustrated</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">entry to change in the web.config nor could I</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> find a close MG Studio version of the Maestro.exe.config</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> file</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> which is what Jackie appears to be editing in th</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">at same</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> example.</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> (see</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> link above,</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">bottom of page</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">)</FONT></SPAN><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">Thanks for your help</FONT></SPAN><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><B></B></SPAN><B><SPAN LANG="en-us"></SPAN></B><B><SPAN LANG="en-us"><FONT FACE="Calibri">Sierk J. Oudemans, GISP</FONT></SPAN></B><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><BR>
</SPAN><SPAN LANG="en-us"><I></I></SPAN><I><SPAN LANG="en-us"></SPAN></I><I><SPAN LANG="en-us"><FONT FACE="Calibri">GIS Analyst</FONT></SPAN></I><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><BR>
</SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Palatino">Ruekert</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"></FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"> <FONT COLOR="#000000" SIZE=2 FACE="Symbol">·</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"></FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"> <FONT COLOR="#000000" SIZE=2 FACE="Palatino">Mielke</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><BR>
</SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Arial">W233 N2080 Ridgeview Parkway</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><BR>
</SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Arial">Waukesha, WI 53188</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><BR>
</SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Calibri">(262) 542-5733</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><BR>
</SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Calibri">(262) 542-5734 Ext. 3150</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><BR>
</SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Calibri">(262) 542-5631 Fax</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><BR>
</SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><U></U></SPAN><U><SPAN LANG="en-us"></SPAN></U><U><SPAN LANG="en-us"><FONT COLOR="#0000FF" SIZE=2 FACE="Calibri">soudemans@ruekert-mielke.com</FONT></SPAN></U><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"><BR>
</FONT></SPAN><SPAN LANG="en-us"></SPAN><A HREF="http://www.ruekert-mielke.com/"><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><U></U></SPAN><U><SPAN LANG="en-us"></SPAN></U><U><SPAN LANG="en-us"><FONT COLOR="#0000FF" SIZE=2 FACE="Calibri">http://www.ruekert-mielke.com</FONT></SPAN></U><SPAN LANG="en-us"></SPAN></A><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"></SPAN></P>
</BODY>
</HTML>