Asp. NET program deployment issues in IIS7

Source: Internet
Author: User

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 ...............

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.