Web Deploy publishing Site and FAQ (graphic) _win server

Source: Internet
Author: User

Web Deploy is no stranger to asp.net developers, after the completion of the successful deployment of our web site deploy can be easily implemented from Visual Studio to the server, and can automatically determine whether the file changes, and make the corresponding modification and deletion. Because of the recent start of a server with a Windows Server 2008 R2, Zhou Liang has done a test study on this.

Install Web Deploy

The details of the installation are not discussed here, primarily to ensure that the following services are installed correctly.
1. Verify that the server installed the Management service before installation: Iis-add role service


2. Download Web Deploy
Download Address: Http://www.iis.net/downloads/microsoft/web-deploy
3. Click Install, if you do not need PHP, you can cancel all related to PHP, click I accept can be downloaded and automatically installed. If you are manually installing all the components of the Web deploy, you will have 404 errors when you use them.
4. After the installation is completed, create a Non-administrator account for the website, and check the "Enable Remote connections" in the management Service in IIS.
5. Configure Configure Web Deploy Publishing
6. Open the server's 8127 port

Frequently asked questions about using Web Deploy

Once the installation is complete, you can begin configuring the connection in Visual Studio. At the beginning of the use of Zhou Liang has encountered the following problems, here is my solution, welcome to discuss: The wrong information can be viewed on the server "Web Deploy" event log.

Error one: Not able to log on the user '. \wdeployconfigwriter '

After the first installation, the user was not checked for proper creation so there was a failure to log in because the Wdeployadmin and Wdeployconfigwriter users in the server user group were not created. In this case, we need to manually create two users and configure the relevant permissions. The specific steps are as follows:
1. Create Wdeployadmin and Wdeployconfigwriter in the server local user. and set the password (the fourth step will also be used). Both check "Password never expires."
2. Add Wdeployadmin to Administrators group
3. Open c:\\windows\system32\inetsrv\config-Properties-security, add wdeployconfigwriter and give modify and Write permissions
4. Open IIS, select "Management Service delegation (delegation of management Services)" to all the user name here wdeploy* click "Edit"-"settings" to fill in the first step of the user name and password added.

After the setup is complete, you can connect using the Web deploy normally, and if you still have errors, continue checking the event log.

Error Two: System.UnauthorizedAccessException: Attempting to perform an unauthorized operation.

This type of problem usually occurs because the user was created without authorization.
First check the second of the error one, the authorization mentioned in the three steps is normal.
Then reconfigure the user's authorization.
Right-click Web site in IIS-select the Configure Web Deploy in the Deploy menu Publishing

Select Windows and click "Select"
;
Enter the deploy username created for the non-admin

Zhou Liang Until this step, the problem is solved.
The next step is to connect to the release via vs.

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.