DLL has, 32-bit, the system is 64-bit. This has a setting in IIS as follows:
Let's take a look at which application pool the project uses:
Then go to the application pool to configure
Set enable 32-bit application to True
OK, fix it. Then browse everything normal.
Here are also notes on the deployment of the MVC3 application in IIS7:
1. Add MVC Parsing
First make sure that the ASP. NET MVC3 is installed, and then check the site's handler mappings to see if the following mappings exist:
extensionlessurlhandler-integrated-4.0
Extensionlessurlhandler-isapi-4.0_32bit
Extensionlessurlhandler-isapi-4.0_64bit
If the mapping exists, check to see if the application is assigned to the. NET Framework4.0 application pool.
If the mapping does not exist, you can register with the administrator to run the following command:
32-bit machine:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe-i
64-bit machine:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe-i
2. Then check the bin directory for SYSTEM.WEB.MVC. DLL. If not, copy it in, or follow the method above to regenerate the project.
3.ASP. NET version selection 4.0.30196;
Failed to load file or assembly "xxx" or one of its dependencies. An attempt was made to load an improperly formatted thread