first, VS2010 under the MVC4.0 project release
First, build the Web site publishing file.
The first step, "Right-click" The MVC4.0 project to publish, select the "Publish (B) ..." option,
The second step, set in the Publish Web dialog box, the profile name defaults to "Profile 1", which can be modified to the desired name for identification or not to change. Publish method Select File system, choose a folder at the target location to hold all the files that will be published for the entire site, here I choose "F:\Web", then click "Publish" button. For my configuration:
Step three, wait for "publish successful" to view the release file
Next, deploy the successful site to iis7.0.
First, click on the Start menu, enter "IIS" in the search box, and then open "IIS",
In the second step, right click on "website", select "Add Site" option, pop up the following window:
The third step, "site name" up, "application pool" according to the program selection, "Physical path" is the path when publishing the site, "port" as needed to configure, click "OK". My configuration
Fourth, "Right click" New website, select "Manage Site" option, then select "Start".
The fifth step, according to the added IP address and port number in the browser to access such as "http://localhost:8082/", access is successful, so that the release was successful.
Second, VS2012 under the MVC4.0 project release
First, it is still the "build" and "Publish" project system, just a window programming multi-tab window, referencing the VS2010 project.
MVC4.0 website Release