The first step:
Need to install Web Deploy on a remote server: Http://www.iis.net/downloads/microsoft/web-deploy
PS. Select Full installation when installing.
Step Two:
2. After you install Web deploy, you also need to enable IIS- managed services.
Step Three:
After you have configured the management service, you will need to enter IIS to make the appropriate settings through the Management service:
Double-click Manage Services, configure IIS, here I keep the default settings, you can set according to your own situation:
Fourth Step:
Configure accounts for far-deployed Web projects
For security reasons, we'd better provide a separate account for deploying Web projects, and for sites in IIS, you can specify which users have permissions to deploy applications to this site.
First click on "IIS Manager User":
Fifth Step: Configure site User permissions
Sixth step: Remote deployment Project using Visual Studio 2013
Before publishing a project, we need to configure some permissions on the site that will be published (for example, the Default Web site) root directory. That is, the "Local Service" account needs to have permission to modify the site directory. Here we have a directory of "Default Web Site" for:
C:\inetpub\wwwroot, so we right-wwwroot file pieces, select Properties--Security--edit, add Local Service account, and tick "modify" permission "
If you do not configure the above permissions, you will be prompted at the time of publishing that the file cannot be created in the physical directory of the site, without creating permissions.
After configuring the physical directory permissions for the site, we start publishing the Web project:
Right-click the project to select Publish:
Then click Verify, the presentation information is correct, can be published. Next, click Next until the release is complete.
Steps for Visual Studio to publish a project to a remote server