1. Start Visual Studio as an administrator
2. New Project Web App or site
3. Compiling the project
4. Right click on Project selection Publish (release)
5, the first configuration, need to establish a configuration file
6, connection verification, fill in the server, site name.
7, click the release can
PS: Common errors
1. Visual Studio failed to open the conference with an administrator
2. Error Error_apppool_version_mismatch:web deployment task failed. (The application pool you are trying to use has the "Managedruntimeversion" property set to "v2.0".)
You need to modify the default program pool. NET Framework version in the application pool
3.HTTP error 500.21-internal Server error handler "pagehandlerfactory-integrated" has an error module in its module list " Managedpipelinehandler "
Cause: After you install the framework v4.0, IIS is enabled, causing the framework to not be fully installed
Solve:
Reference:HTTP error 500.21
ASP. NET MVC application, site publishing to local IIS