After you finish writing the ASP.net Web program, "Publish ..." to a folder, "Add an Application ..." Under IIS7 's website. This error always occurs when executing:
Could not load type from assembly "System.ServiceModel, version=3.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089" System.ServiceModel.Activation.HttpModule ".
It appears to be a problem with the version, because I am a version of the. Net framework4.0, compiled with VS 2010, how to load 3.0 of DLLs.
The reason for the Internet is that the local computer installed the. NET Framework 4.0 first, then installed the IIS7, so you should perform "Aspnet_regiis.exe-iru" to register. NET 4.0 into IIS.
Under the c:/windows/microsoft.net/framework/v4.0.30319 found the aspnet_regiis.exe, open the CommandLine, execute "Aspnet_regiis.exe-iru", Information appears:
Start installing asp.net (4.0.30319) and change the IIS configuration to use this version of ASP.net.
...................
The installation asp.net (4.0.30319) has been completed and the IIS configuration has been changed to use this version of ASP.net.
Setup has detected some errors during the operation. For more information, check the installer log file c:/
Users/mustapha/appdata/local/temp/aspnetsetup_00007.log
View log file with an error:
Failure changing IIS ApplicationHost.config:IIS7Register failed with HRESULT 800700b7: ' Cannot create a file when it already exists. '
In this directory c:/windows/system32/inetsrv/config found ApplicationHost.config, first renamed, and then execute the "Aspnet_regiis.exe-iru", or say there are errors, view log, Appears again:
Failure changing IIS ApplicationHost.config:IIS7Register failed with HRESULT 80070002: ' The system cannot find the specified file. '
Flying blind ...............