IIS: error handling
Error prompt:
Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly' System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
Reason:
The main reason is that I installed the version of. NET Framework3.5 after installing IIS in the environment of .NET Framework4.0, which caused the mismatch of the version of .NET Framework that IIS depends on and reported an error.
Solution:
You need to register for ASP.NET 4.0 here.
Just run the command in the command window: aspnet_regiis.exe / iru
The aspnet_regiis.exe file can be found in either
% windir%\ Microsoft.NET\ Framework\ v4.0.30319
% windir%\ Microsoft.NET\ Framework64\ v4.0.30319 (on a 64-bit machine)
If the default system directory remains unchanged, it should be the following statement
C:/Windows/Microsoft.NET/Framework/v4.0.30319/aspnet_regiis.exe-iru