*This applies to the web modules for WaspTime (WaspTime Web), MobileAsset (MobileAssetWeb), and InventoryControl (InventoryControlWeb)
When attempting to install the web module in a 64 bit Windows environment, you may receive an error "Operation failed with 0x8007000B. An attempt was made to load a program with an incorrect format."
If this machine is a production server or running other web pages, you should consider hosting the Wasp web module on a different server. These changes may affect other pages that are configured to run as 64 bit applications.
First, verify that the application pool is set to enable 32-bit mode and the correct version of .NET Framework is selected, as documented in article:
IIS needs to be manually changed to 32-bit mode in the web module
https://support.waspbarcode.com/kb/articles/271
If that is correct but you continue to receive the same error, attempt the following steps. After each step, attempt to open the page again and proceed on if you still receive errors:
- In an administrator Command Prompt window (go to Start > Search, type cmd.exe, right click on the result and select Run as Administrator) enter these commands:
cd \Windows\Microsoft.NET\Framework\v2.0.50727
aspnet_regiis -i
Do not close this window until the website is able to open, as you may need it for future steps. - Download and install the latest release version of Dotnet Framework from Microsoft. If it will not install, citing the same or newer version is already installed, look in Control Panel > Programs and Features, and Control Panel > Programs and Features > Turn Windows features on or off, and uninstall the currently installed version. If you have a preview version installed (e.g., v4.5.1 Preview) it will prevent the previous full version (v4.5) from installing.
- In IIS Manager, look back at the Advanced Settings for the Wasp Application Pool and verify that Managed Pipeline Mode is set to Integrated. Also check the Advanced Settings for the site to make sure the Application Pool is set to the Wasp Application Pool (e.g., for WaspTime Web, Application Pool should be set to WaspTimeWebAppPool).
- In the command prompt window, enter these commands:
cd "\windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation"
servicemodelreg -i - In the command prompt window, enter these commands:
cd \Windows\Microsoft.NET\Framework64\v2.0.50727
aspnet_regiis -i