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: