Msbuild 升级web服务器(服务器2012 R2)后,web部署现在失败

Msbuild 升级web服务器(服务器2012 R2)后,web部署现在失败,msbuild,visual-studio-2015,webdeploy,Msbuild,Visual Studio 2015,Webdeploy,我们刚刚将测试web服务器从Server2008升级到Server2012 R2。我们有一个批处理脚本来部署我们的站点。当它将站点推送到服务器时,它现在失败了。奇怪的是,我可以通过VisualStudio发布相同的发布配置文件,一切都很好。我们能够升级我们的devweb服务器,并且曾经遇到过这个问题 以下是我通过visual studio 2015发布时发生的情况(该版本有效): 以下是用于部署站点的批处理语句: "C:\Program Files (x86)\MSBuild\14.0\Bin\

我们刚刚将测试web服务器从Server2008升级到Server2012 R2。我们有一个批处理脚本来部署我们的站点。当它将站点推送到服务器时,它现在失败了。奇怪的是,我可以通过VisualStudio发布相同的发布配置文件,一切都很好。我们能够升级我们的devweb服务器,并且曾经遇到过这个问题

以下是我通过visual studio 2015发布时发生的情况(该版本有效):

以下是用于部署站点的批处理语句:

"C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe" "c:\tfs\trsapps\test\Web\Secured Account Access\Member\TRSSecureAccess.vbproj" /p:VisualStudioVersion=14.0;DeployOnBuild=True;Configuration=Release;Platform=x86;PublishProfile="c:\tfs\trsapps\test\Web\Secured Account Access\Member\My Project\PublishProfiles\Membertest.pubxml";AllowUntrustedCertificate=True;Username=bob;Password=MyPassword /t:Clean;Build /p:OutputPath="c:\tfs\trsapps\test\Web\Secured Account Access\Member\bin"  
渔农处


您是否安装了服务器,这是服务器端的先决条件


这可能会有所帮助。

是的,或者如果不是这样,那么我当然也很难通过visual studio直接发布。
"C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe" "c:\tfs\trsapps\test\Web\Secured Account Access\Member\TRSSecureAccess.vbproj" /p:VisualStudioVersion=14.0;DeployOnBuild=True;Configuration=Release;Platform=x86;PublishProfile="c:\tfs\trsapps\test\Web\Secured Account Access\Member\My Project\PublishProfiles\Membertest.pubxml";AllowUntrustedCertificate=True;Username=bob;Password=MyPassword /t:Clean;Build /p:OutputPath="c:\tfs\trsapps\test\Web\Secured Account Access\Member\bin"  
PipelineCopyAllFilesToOneFolderForMsdeploy:
  Publish Pipeline Deploy phase Stage PipelineCopyAllFilesToOneFolderForMsdeploy
GenerateMsdeployManifestFiles:
  Generate source manifest file for Web Deploy package/publish ...
MSDeployPublish:
  Start Web Deploy Publish the Application/package to https://web-test3-new:8172/msdeploy.axd?site=TRS ...
  Starting Web deployment task from source: manifest(c:\tfs\trsapps\test\Web\Secured Account Access\Member\bin\_Publish
  edWebsites\TRSSecureAccess_Package\TRSSecureAccess.SourceManifest.xml) to Destination: auto().
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(4276,5): error : Web d
eployment task failed. (Could not complete the request to remote agent URL 'https://web-test3-new:8172/msdeploy.axd?sit
e=TRS'.) [c:\tfs\trsapps\test\Web\Secured Account Access\Member\TRSSecureAccess.vbproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(4276,5): error : This
error indicates that you cannot connect to the server. Make sure the service URL is correct, firewall and network setti
ngs on this computer and on the server computer are configured properly, and the appropriate services have been started
 on the server. [c:\tfs\trsapps\test\Web\Secured Account Access\Member\TRSSecureAccess.vbproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(4276,5): error : Error
 details:\r [c:\tfs\trsapps\test\Web\Secured Account Access\Member\TRSSecureAccess.vbproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(4276,5): error : Could
 not complete the request to remote agent URL 'https://web-test3-new:8172/msdeploy.axd?site=TRS'.\r [c:\tfs\trsapps\tes
t\Web\Secured Account Access\Member\TRSSecureAccess.vbproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(4276,5): error : The u
nderlying connection was closed: An unexpected error occurred on a send.\r [c:\tfs\trsapps\test\Web\Secured Account Acc
ess\Member\TRSSecureAccess.vbproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(4276,5): error : Unabl
e to read data from the transport connection: An existing connection was forcibly closed by the remote host.\r [c:\tfs\
trsapps\test\Web\Secured Account Access\Member\TRSSecureAccess.vbproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(4276,5): error : An ex
isting connection was forcibly closed by the remote host [c:\tfs\trsapps\test\Web\Secured Account Access\Member\TRSSecu
reAccess.vbproj]
  Publish failed to deploy.
Done Building Project "c:\tfs\trsapps\test\Web\Secured Account Access\Member\TRSSecureAccess.vbproj" (Clean;Build targe
t(s)) -- FAILED.


Build FAILED.

"c:\tfs\trsapps\test\Web\Secured Account Access\Member\TRSSecureAccess.vbproj" (Clean;Build target) (1) ->
(MSDeployPublish target) ->
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(4276,5): error : Web
 deployment task failed. (Could not complete the request to remote agent URL 'https://web-test3-new:8172/msdeploy.axd?s
ite=TRS'.) [c:\tfs\trsapps\test\Web\Secured Account Access\Member\TRSSecureAccess.vbproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(4276,5): error : This
error indicates that you cannot connect to the server. Make sure the service URL is correct, firewall and network setti
ngs on this computer and on the server computer are configured properly, and the appropriate services have been started
 on the server. [c:\tfs\trsapps\test\Web\Secured Account Access\Member\TRSSecureAccess.vbproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(4276,5): error : Error
 details:\r [c:\tfs\trsapps\test\Web\Secured Account Access\Member\TRSSecureAccess.vbproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(4276,5): error : Could
 not complete the request to remote agent URL 'https://web-test3-new:8172/msdeploy.axd?site=TRS'.\r [c:\tfs\trsapps\tes
t\Web\Secured Account Access\Member\TRSSecureAccess.vbproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(4276,5): error : The u
nderlying connection was closed: An unexpected error occurred on a send.\r [c:\tfs\trsapps\test\Web\Secured Account Acc
ess\Member\TRSSecureAccess.vbproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(4276,5): error : Unabl
e to read data from the transport connection: An existing connection was forcibly closed by the remote host.\r [c:\tfs\
trsapps\test\Web\Secured Account Access\Member\TRSSecureAccess.vbproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(4276,5): error : An ex
isting connection was forcibly closed by the remote host [c:\tfs\trsapps\test\Web\Secured Account Access\Member\TRSSecu
reAccess.vbproj]

    0 Warning(s)
    1 Error(s)