IIS 7 Deployment of MVC

Source: Internet
Author: User

Developing an MVC 3.0 project, or a little bit of effort in deploying the service, lists the problems encountered here.

This article focuses on specific ways to install MVC 3.0 in IIS 7.5!

Deployment Prerequisites:

Microsoft. NET FrameWork 4.0 installation package

Installing ASP. NET MVC 3.0

If the ASP. NET v4.0.30319 is limited to "do not allow" to change it to "allow"

On the application "Add Application Pool" and select the. Net Framework v4.0.30310 version, here My name is written "Default4"

Then, right-click the "DEFAULT4" program pool, such as the site "add site" selection, to deploy the Web site.

Error message when testing:

"Failed from assembly" System.ServiceModel, version=3.0.0.0, Culture=neutral,

publickeytoken=b77a5c561934e089 "Load Type" System.ServiceModel.Activation.HttpModule ". ”

There is a version problem here, loading 3.0 DLL phenomenon. It is said online because of the reason for installing the IIS7.5 after installing the. Net Framework 4.0 first.

Then try re-registering the. NET Framework 4.0 with the aspnet_regiis.exe of the NET Framework 4.0.

Enter "C:\Windows\Microsoft.NET\Framework64\v4.0.30319" after running cmd

The execution statement is: "Aspnet_regiis.exe–iru"

There is a aspnetsetup_00000.log problem in the installation, after entering the file to see only the test site I deployed was not found after I deleted the system specified path and error.

Enter the address via IE:

Everything is done!

IIS 7 Deployment of MVC

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.