IIS WebDeploy: ERROR_USER_UNAUTHORIZED

On the target server (Win2008R2) using error :

deployed web deployment compared to VS2012 with Publish Internet Publish and Web Deploy <
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets(4253,5): 
 Error ERROR_USER_UNAUTHORIZED: Web deployment task failed. 

What I've done:

  • deploy package manually on IIS -> succuessfully
  • mark it all that should be
  • Configuring a web server for deploying a web deployment (Web Deploy handler):
  • create a local custom "BuildServer" on the target server and add it to the "Administrators" and "MSDepSvcUsers" groups
  • create: .PublishSettings for a site with Deploy / Configure Web Deploy Publishing ...

    publishUrl="https://SAIGON-CLXBLEND:8172/msdeploy.axd"<br/> msdeploySite="ClxBlend (180)"<br/> destinationAppUrl="http://saigon-clxblend:180/"<br/> mySQLDBConnectionString=""<br/> SQLServerDBConnectionString=""<br/> profileName="Default Settings"<br/> publishMethod="MSDeploy"<br/> userName="SAIGON-CLXBLEND\BuildServer"<br/>

  • config Publish web pages to VS:

    Server="https://SAIGON-CLXBLEND:8172/msdeploy.axd"<br/> Sitename=ClxBlend (180)<br/> Username=SAIGON-CLXBLEND\BuildServer<br/> Destination URL="http://saigon-clxblend:180"/<br/>

  • reboot after configuring IIS and VS
  • Web → succuessfully
  • IIS:

    C:\inetpub\logs\wmsvc\W3SVC1<br/> 2014-04-02 11:46:39 10.1.20.13 HEAD /msdeploy.axd site=ClxBlend%20(180) 8172 SAIGON-CLXBLEND\BuildServer 10.1.20.1 - 200 0 0 12966<br/> 2014-04-02 11:46:39 10.1.20.13 HEAD /msdeploy.axd site=ClxBlend%20(180) 8172 SAIGON-CLXBLEND\BuildServer 10.1.20.1 - 200 0 0 14<br/> 2014-04-02 11:46:40 10.1.20.13 POST /msdeploy.axd site=ClxBlend%20(180) 8172 SAIGON-CLXBLEND\BuildServer 10.1.20.1 Unknown;sid=4cd19062-7e09-4ba8-a047-f0338161ac9f;op=Sync 200 0 0 1167<br/> 2014-04-02 11:46:40 10.1.20.13 POST /msdeploy.axd site=ClxBlend%20(180) 8172 SAIGON-CLXBLEND\BuildServer 10.1.20.1 - 200 0 0 1376<br/> 2014-04-02 11:49:41 10.1.20.13 HEAD /msdeploy.axd site=ClxBlend%20(180) 8172 - 10.1.20.1 - 401 2 5 292

?

+4

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


All Articles