Solution for System.BadImageFormatException error in IIS

I was moving some web sites around and had one that was giving a System.BadImageFormatException after being moved with the ReportGenerator assembly.  After comparing the configuration between the 2 servers, the issue was that that the “Enable 32-bit Applications” had to be set to true in the advanced settings for the application pool.  This was certainly not an obvious thing to change from the type of error being thrown, and it would have been difficult to debug if I hadn’t had access to both the old working server and new server to compare differences in settings.


Setting to Change in the application pool:


No comments yet.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Powered by WordPress. Designed by WooThemes