Simple ASP. net mvc release and asp. netmvc release

Source: Internet
Author: User

Simple ASP. net mvc release and asp. netmvc release

ASP. net mvc, which has been studied for so long, has never been implemented to publish the MVC program. Try it today.

It is divided into two parts. The first part is the publish of Visual Studio:
Create an ASP. net mvc with an instance: WebApp1

 

Click "OK":



Next, in Solution Explorer, right-click the application and select publish:



In Profile, select Custom:



In the New Custom Profile window, enter Profile name, "WebApp1 ". Insus. NET directly uses the ASP. net mvc application name.

 

In connection step, select FileSystem for Publish method marked 1. In the Target location marked with 2, select the Target path. All Publish files will be stored here.


In the Settings step, we recommend that you select all three options of Release and File Publish options in Configuration.

 

Preview steps:

 

Click "publish". If there is no error, it is successful:


Part 2: create a website for IIS:
Find the publish directory path and copy the WebApp1 directory,



Put it on your server.

Press Win key + R key to run inetmgr

 
The IIS management interface will be opened:

 

Add a new Application Pool:

 

Next, create a new application on the Default Web site:

 

In the window, follow these four steps:

 
Finished. Browse published websites:

 

Look at the results:





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.