IIS deploys the asp.net mvc website, and iis deploys asp. netmvc.
Simple ASP. net mvc website with iis configuration
Compiler: VS 2013
Local IIS: IIS 7
Operating System: win 7
MVC version: ASP. NET MVC4
SQL server version: 2008 r2
Open VS 2013, create an MVC Project (Internet version), and run the test locally. Then configure iis 7:
Look at the content under simple_mvc (if the configuration is not correct here, the analyzer problem will occur !) :
Configure directory browsing first:
Because it is an MVC project, we do not need to configure the default document
Then we can browse it:
IIS configures the existing ASP. net mvc Project (proficient in asp.net mvc 4 Projects)
This project is the SportStore website in <proficient in ASP. NET MVC4>. First, you need to mount the SQL server database locally.
Then let's take a look at the structure of this project:
Three folders:
The first is related to the database, the second is the unit test module, and the third is the UI module. Note that to create a new website in IIS, you only need to set the physical path to the webUI folder in this project:
The rest are the same. The running result is as follows:
I have successfully deployed my server according to the deployment steps on the local IIS. Therefore, you can follow this deployment. I will not cite the deployment examples on the server.