How IIS implements the method of deploying an ASP. NET MVC Web site

Source: Internet
Author: User
This article is mainly for the introduction of IIS to deploy the ASP. NET MVC Web site method, with a certain reference value, interested in small partners can refer to

IIS configures a simple ASP. NET MVC website for your reference, as follows

Compiler: VS 2013
Local Iis:iis 7
Operating system: Win 7
MVC version: ASP. NET MVC4
SQL Server version: R2

Open vs 2013, create a new MVC Project (Internet Edition), and then run the test locally on it should be possible. Then configure IIS 7:

Look at the content under SIMPLE_MVC (if this is not configured correctly, there will be a parser problem!) ):

First configure the following directory browsing:

Because it's an MVC project, we don't have to configure the default document

And then we'll go through the following:

IIS configures an existing ASP. NET MVC project (proficient in ASP. NET MVC 4 Project)
This project is << proficient in the Sportstore website in ASP. Mvc4>>, first of all, the SQL Server database needs to be listed locally.
We then look at the structure of this project:

Three folders:

The first one is database-related, the second is the unit test module, and the third is the UI module. Note here that a new Web site in IIS, pointing to the physical path only needs to be the WebUI folder in this project:

The rest is the same, the result of the operation:

I successfully deployed on my server as per the steps deployed on the local IIS, so you follow this deployment, and I don't cite the example of deployment on the server.

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.