asp.net MVC3 website creation and Publishing (1) _ Practical Tips

Source: Internet
Author: User

Sometimes we have a website but we don't know how to publish it, this section demonstrates how to use VS2010 to create and publish a website created by MVC3. Using VS2010 to create a MVC3.0 Web site, you need to download the MVC3.0 installation package, which you can download on the Web.
1. Project Creation
Open VS2010, select File--new project---asp.net MVC3 Web application, as shown below

Then select Razor view, as shown below, click OK, so a MVC3 project is created and completed

2. Website release
Right-click the item you just created, pop up a drop-down menu, select the Publish menu, and pop Up the Publish Web dialog box, as shown below

In the Publish Web form, the Publish method selects file system, and the target location we choose to publish to the C:\inetpub\wwwroot\stock folder below. As pictured above
Next we open IIS, create the application pool first, the name can be customized,. NET Select version 4.0. Click OK to see the mvcpool in the application pool in IIS.
To create an application pool:

Next is the new site, right add site, site name customization, application pool selection mvcpool, click OK, you can browse the Web site in IIS



The above is the ASP.net MVC3 website to create and release the steps, is not have some general thinking, then grasp the hands of the operation!

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.