IIS reported an error trying to load an incorrectly formatted assembly solution

  

Problem Description:

After posting the website/WCF to IIS, it was reported to be wrong.

Reason:

A 64-bit system and a 32-system mismatch.

Solution:

Method 1. Register 32-bit IIS (you must uninstall 64-bit IIS) Use the command X:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\aspnet_regiis -u to uninstall 64-bit IIS uses the command X:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\aspnet_regiis -i to register 32-bit IIS X as the system drive letter

Method 2, 64-bit enable 32 application compatibility (recommended) ), enable the way shown below

If there is: Can not write Temporary ASP.NET Files error, the solution is to check the X: \\ Windows \\ Microsoft.NET \\ Framework64 \\ v4.0.30319 \\ directory is There is Temporary ASP.NET Files. If there is no new one, then the read and write permissions of this folder will be given to the user IIS user.

Copyright © Windows knowledge All Rights Reserved