1) To use Web Deploy in Visual Studio, you must first Enable It. To enable, please login to your Control Panel -> IIS Manager -> VS Web Deploy.
You'll also find all the necessary publishing setting there. Please be sure to enable 'Allow Untrusted Certificate' when you publish.
The following instructions apply to Web Applications Projects. If you created your site using "New/Web Site" web deploy will not be available for that web application. The web site must be created as a Project. Web Deploy can be activated on Visual Studio or Visual Web Developer Express
2) To Publish your web project using Web Deploy:
If you are planning to upload your web application to a subdirectory you will also enter the name of that folder.
For example: "demouser-001-site1/subfolder"
6. Check "Mark as IIS application on destination" (If you are uploading to a subfolder instead of your site root).
7. Check "Leave extra files on destination (do no delete)".
8. Check "Allow untrusted certificate".
9. In the User name text box --> [Please find this in your control panel -> IIS Manager -> VS Web Deploy]
10. In the Password text box --> [Please find this in your control panel -> IIS Manager -> VS Web Deploy]
You'll also find all the necessary publishing setting there. Please be sure to enable 'Allow Untrusted Certificate' when you publish.
The following instructions apply to Web Applications Projects. If you created your site using "New/Web Site" web deploy will not be available for that web application. The web site must be created as a Project. Web Deploy can be activated on Visual Studio or Visual Web Developer Express
2) To Publish your web project using Web Deploy:
- Open the project in Visual Studio.
- Click on Build/Publish. This will bring up the "Publish Web" window.
- Click on the drop down box on "Publish Method" and choose Web Deploy.
- On the "Service URL" text box input --> [Please find this in your control panel -> IIS Manager -> VS Web Deploy]
e.g: https://demouser-001-site1.smarterasp.net:8172/MsDeploy.axd - In the Site/application text box --> [Please find this in your control panel -> IIS Manager -> VS Web Deploy]
e.g: demouser-001-site1
If you are planning to upload your web application to a subdirectory you will also enter the name of that folder.
For example: "demouser-001-site1/subfolder"
6. Check "Mark as IIS application on destination" (If you are uploading to a subfolder instead of your site root).
7. Check "Leave extra files on destination (do no delete)".
8. Check "Allow untrusted certificate".
9. In the User name text box --> [Please find this in your control panel -> IIS Manager -> VS Web Deploy]
10. In the Password text box --> [Please find this in your control panel -> IIS Manager -> VS Web Deploy]