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:
- Open Internet Information Services (IIS) Manager on your server.
- You can typically find it under “Windows Administrative Tools” in the Start menu.
- 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.
- In the Actions pane on the right-hand side, click on “Advanced Settings.”
- In the Advanced Settings dialog box, locate the “Enable 32-Bit Applications” setting under the General section.
- Set the “Enable 32-Bit Applications” option to
True
to enable running the application pool in 32-bit mode. - 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.