IIS deploys the asp.net mvc website, and iis deploys asp. netmvc.

Source: Internet
Author: User

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.

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.