Using Web Deploy Tool for IIS β€” Works with an administrator account, but not with an IIS or Windows user account

I'm struggling with a massive beast, which seems to be WMSvc, the web management service for IIS.

I am trying to deploy websites from Visual Studio that are killing me. It actually kills everyone but me on my team, but since I am appointed as the web server manager right now, I am the one who feels the pain.

It works when I deploy with my windows admin account, which at least means that I should be on my way, but it doesn’t work with another account that is not an administrator or an IIS manager account.

Let me show you what I did:

  • Installed by WMSvc.

  • He seemed to be tuned. In the MYSERVER / Management Service section, I have the following settings:

    Enable Remote Connections Windows credentials or IIS Manager credentials Access for unspecified clients - allow. 
  • User MYUSER has been added as an IIS Manager account. Also added Windows account MYSERVER \ MYUSER

  • Added these users according to the permissions of MYSERVER / My web site / IIS Manager.
  • Donated a goat.
  • Rules added under MYSERVER / Delegation of Management Services

     Deploy Applications with Content - and added user * Set Permissions - and added user * 

After all this, he worked with my Windows administrator account, but not with other accounts. Visual Studio reported 401 unauthorized. In the following article, we provided the following link in the Troubleshooting section:

The user receives 401 an unauthorized error when trying to connect to the website. o Reason (s): This error occurs from WMSVC and is usually an error with username / password, or because the user does not have access to the website. o Resolution (s): Verify the username / password and that the user has access to the website.

But honestly, I have no idea what I did wrong. Any ideas?

Thanks for any answers.

+4
source share
1 answer

Do you grant file system rights to a Local Service account? This is the account that WMSvc works with, so it requires access to the file system to work.

If you right-click on a site in IIS, you must select the "Edit Sessions ..." context menu item. This will take you directly to the permissions section of the folder properties for the website directory.

0
source

Source: https://habr.com/ru/post/1345370/


All Articles