The format of the dll is invalid

D

Dinos

I recently upgraded from Visual Studio 2003 to Visual Studio 2005 and i'm
having trouble running my InfoPath forms. My solution compiles with no errors
or warnings but when i open my form i get the following error

InfoPath cannot open the selected form because of an error in the form's code.
The format of the file 'EngineeringChange.dll' is invalid.

I have seen 2-3 posts out there but i cant seem to find a solution to this
problem.

Any help will be very appreciated.

Thank
 
G

Greg Collins [InfoPath MVP]

Did you create an "InfoPath.exe.config" file? If so, rename it to "InfoPath.exe.!config" and try again.
 
D

Dinos

Greg,
There was an "InfoPath.exe.config" file at the same location as the
InfoPath.exe file. Once i renamed it everything worked just fine. I did not
create the config file so i'm guessing VS 2003 or VS 2005 created it.

Thanks for your help.
 
G

Greg Collins [InfoPath MVP]

Glad to help. Just note that if you ever have to go back to VS2003 for your work, you might need to rename the file back to InfoPath.exe.config.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top