This content has been marked as final. Show 12 replies
I did one thing did today where I ran Visual Studio as Administrator but that did not make a difference on the compile of the program. I continued to get the same error.
Also, once this error is received, the project will not compile from that point forward.
I tried a GlobeControl application. Same type of thing in that I was able to compile the program and run the application. However, once I opened the MainForm.cs and then tried to compile it failed. This time it died w/ the following error:
Could not load file or assembly 'file:///C:/Program Files (x86)/ArcGIS/DeveloperKit10.0/DotNet/ESRI.ArcGIS.3DAnalyst.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format. Line 129, position 5.
c:\users\mark\documents\visual studio 2010\Projects\GlobeControlApplication1\GlobeControlApplication1\MainForm.resx
have you solved the problem, I have the same issue.
Fresh ArcEngine installation on VS2010, with Windows 7 Pro x64
Contacted ESRI Support and their notes indicated that it was actually a problem w/ MicroSoft and Visual Studios. Support person directed me to this following MicroSoft KB Article:
Thanks for the info, this worked prefectly!
I've come across this issue also. To remove this error, double-click on the error in the Error List and it will direct you to the *.resx file. Then, I just simply remove the offending lines:
<data name="axSymbologyControl.OcxState" mimetype="application/x-microsoft.net.object.binary.base64">
Notice that is has base64 at the end of the data name element. You can also just change it from base64 to base32 and that fixes the error. I've only seen this happen with Esri controls.
Using the suggested microsoft fix did not work for me and now i can no longer build anything with studio. is there a way to reverse this? why is this still and issue over a year later?
on a different machine i tried to just edit the base64 entries and make them base32.
this got it to compile but when it ran it is not the same. all of the items in my map app are juxtaposed now.
I encountered the same error while compiling (Could not load file or assembly 'file:///C:/Program Files (x86)/ArcGIS/DeveloperKit10.0/DotNet/ESRI.ArcGIS.ADF.Local.dll'.....)
Double clicking the error led me to the .resx file of one of my WinForms.
<assembly alias="System.Drawing" name="System.Drawing, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
To fix my particular problem, I changed the version number of the System.Drawing assembly to be 126.96.36.199.
A handful of my WinForms had similar problems and I was able to run my application after changing them all.
The solution suggested at http://support.microsoft.com/kb/2028833 worked for me as well, but it is a global change that affects all Visual Studio projects. So when I compiled another project, I got a bunch of errors.
Changing the base64 to base32 seemed to have no affect on my error.
I had the same problem and followed the steps at http://support.microsoft.com/kb/2028833, but now Visual Studio won't compile anything! I get the error "Resgen.exe exited with code �??1073741813" How do you reverse those steps? There was a message saying that I'll need to resign the assembly. What's that about?
How can the controls be THIS GOOD!? WOW!
64 bit with desktop 10.0 uh? We are all waiting for that one. Of course MS could do better to support those stuck in a 32 universe...