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!