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.