Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net IIS WebDeploy:错误\u用户\u未经授权_Asp.net_Iis_Visual Studio 2012_Msbuild - Fatal编程技术网

Asp.net IIS WebDeploy:错误\u用户\u未经授权

Asp.net IIS WebDeploy:错误\u用户\u未经授权,asp.net,iis,visual-studio-2012,msbuild,Asp.net,Iis,Visual Studio 2012,Msbuild,通过VS2012在目标服务器(Win2008R2)上使用“发布web”和方法“web部署”进行的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->上手动部署包成

通过VS2012在目标服务器(Win2008R2)上使用“发布web”和方法“web部署”进行的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->上手动部署包成功
  • 检查了一切
  • 用于Web部署发布的Web服务器(Web部署处理程序):
  • 在目标服务器上创建本地用户“BuildServer”,并将其添加到Administrators和MSDepSvcUsers组中
  • 创建:。使用部署/配置Web部署发布的网站的发布设置

    publishUrl=”https://SAIGON-CLXBLEND:8172/msdeploy.axd“
    msdeploySite=“ClxBlend(180)”
    destinationAppUrl=”http://saigon-clxblend:180/“
    mySQLDBConnectionString=“”
    SQLServerDBConnectionString=“”
    profileName=“默认设置”
    publishMethod=“MSDeploy”
    userName=“SAIGON-CLXBLEND\BuildServer”

  • 在VS中配置发布Web:

    Server=”https://SAIGON-CLXBLEND:8172/msdeploy.axd“
    Sitename=ClxBlend(180)
    Username=SAIGON-CLXBLEND\BuildServer
    目标URL=”http://saigon-clxblend:180“/

  • 配置IIS和VS后重新启动
  • 在发布Web->成功验证连接
  • IIS日志的输出:

    C:\inetpub\logs\wmsvc\W3SVC1
    2014-04-02 11:46:39 10.1.20.13 HEAD/msdeploy.axd site=ClxBlend%20(180)8172西贡-ClxBlend\BuildServer 10.1.20.1-200 0 12966
    2014-04-02 11:46:39 10.1.20.13 HEAD/msdeploy.axd site=ClxBlend%20(180)8172西贡-ClxBlend\BuildServer 10.1.20.1-200 0 14
    2014-04-02 11:46:40 10.1.20.13 POST/msdeploy.axd site=ClxBlend%20(180)8172西贡-ClxBlend\BuildServer 10.1.20.1未知;sid=4cd19062-7e09-4ba8-a047-f0338161ac9f;op=Sync 200 0 1167
    2014-04-02 11:46:40 10.1.20.13 POST/msdeploy.axd site=ClxBlend%20(180)8172西贡-ClxBlend\BuildServer 10.1.20.1-200 0 1376
    2014-04-02 11:49:41 10.1.20.13 HEAD/msdeploy.axd site=ClxBlend%20(180)8172-10.1.20.1-40125292


这里出了什么问题?

目标服务器中的IIS使用共享配置?