Could not load file or assembly ‘ConfigManager’

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

If you find this error change “Enable 32-bit applications” to TRUE.

This will resolve the error.

Watch video help How to enable IIS to run applications in the 32-bit mode

To enable 32-bit applications in IIS (Internet Information Services), follow these steps:

  1. Open Internet Information Services (IIS) Manager on your server.
  • You can typically find it under “Windows Administrative Tools” in the Start menu.
  1. Expand the server node and select the application pool you want to enable 32-bit applications for.
  • By default, the application pools are located under the “Application Pools” node in the Connections pane.
  1. In the Actions pane on the right-hand side, click on “Advanced Settings.”
  2. In the Advanced Settings dialog box, locate the “Enable 32-Bit Applications” setting under the General section.
  3. Set the “Enable 32-Bit Applications” option to True to enable running the application pool in 32-bit mode.
  4. Click “OK” to save the changes.

Once you have enabled 32-bit applications for the desired application pool, IIS will use the 32-bit version of the .NET Framework and related components when running applications within that pool.

Remember to restart the application pool for the changes to take effect. You can do this by right-clicking on the application pool and selecting “Recycle” from the context menu.

Leave a Reply

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