IIS Web部署:ERROR_USER_UNAUTHORIZED

时间:2014-04-02 13:18:44

标签: asp.net iis visual-studio-2012 msbuild

在目标服务器(Win2008R2)上使用“发布Web”和方法“Web部署”的VS2012上的Web部署失败,并显示错误

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets(4253,5): 
 Error ERROR_USER_UNAUTHORIZED: Web deployment task failed. 

我做了什么:

  • 在IIS上手动部署包 - > succuessfully
  • 检查this应有的一切
  • Configuring用于Web部署发布的Web服务器(Web部署处理程序):
  • 在目标服务器上创建本地用户“BuildServer”并将其添加到Administrators和MSDepSvcUsers组中
  • 为部署/配置Web部署发布的网站创建:.PublishSettings ...

    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在VS中发布Web:

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

  • 配置IIS和VS后
  • 重启
  • 验证发布网络中的连接 - &gt; abcuessfully
  • 从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

这里出了什么问题?

0 个答案:

没有答案