Atalasoft error: attempt made to load a program with an incorrect format
Posted on 2011-10-17
My company has used Atalasoft for as long as I've been here, almost a year, and just recently we started getting this error.
It is a very large application, with a couple of dozen modules, each in its own solution. The project that I'm working on is the only one which uses Atalasoft. If I check a fresh copy of the project out of Subversion, it compiles just fine. But if I open one of the Windows Forms in the designer and save it, then compile, I get this error: "Could not load file or assembly 'file:///ThirdParty/Atalasoft/DotImage 9.0/Atalasoft.DotAnnotate.dll' or one of its dependencies. An attempt was made to load a file with an incorrect format"
DotAnnotate is the first of the references in my project file and if I switch the order it still fails on the first reference to Atalasoft.
When I check the saved version against the original in Subversion, I can see that some of the form controls' locations were changed, though I didn't deliberately change anything. Some of the lines which Subversion thinks were changed look exactly the same to me. There were other syntax changes, order changes, etc.
Any ideas as to how to get the error to go away? We are running VS 2008, Net 3.5 and the version of Atalasoft is for net 2.0 (since they only have 2.0 and 4.0 and we haven't yet migrated to 4.0).
I have tried setting Enable 32 bit application to true for IIS Application Pools. I have tried compiling for x86 instead of Any CPU. Nothing has worked so far.