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

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

In this post we will discuss how to solve this error: 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. I have faced this issue when i try to run one of website hosted on IIS. On research about this error i got to know that it is a issue of Enable 32 Bit application is set to false on application pool used by application.

To Solve this error:

1. Start->Run->type inetmgr and on the left application pools.

2. Select DefaultAppPool and make sure to enable 32 -bit applications to true.

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