1. Right-click the project you want to publish, select Properties Application
Select the version of. NET 4 in the target framework.
2. Right-click the project you want to publish, and select Publish. "Config file" if not, select New. "Connect" selects the file system. In Settings, select release. then select Publish.
3, in the remote server interface, enter inetmgr to open the IIS interface and create a new application pool in the application pool.
The. NET version here is consistent with the version of the project that we are about to publish, choosing the 4 version.
4, then right-click on the website and select new site.
Then specify the application pool and IP address. If the password for the SQL Server database that the application links to is inconsistent, you need to change the link password of the database.
Here, an ASP. NET site is published successfully.
How to publish Web projects by "ASP."