An old ASP .NET 32-bit web application would not start, when reinstalled on a new machine:

Could not load file or assembly ‘System.EnterpriseServices’ or one of its dependencies. An attempt was made to load a program with an incorrect format. 

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

 Exception Details: System.BadImageFormatException: Could not load file or assembly ‘System.EnterpriseServices’ or one of its dependencies. An attempt was made to load a program with an incorrect format.

 

To fix this problem, I just had to enable 32-bits applications on the application pool (Advanced Settings):

 

Leave a Reply

Your email address will not be published. Required fields are marked *

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