在目标服务器(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.
我做了什么:
为部署/配置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日志输出:
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
这里出了什么问题?