简体   繁体   English

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

[英]After upgrade web server (sever 2012 R2) web deploy is now failing

We just upgraded our test web servers from Server 2008 to Server 2012 R2. 我们刚刚将测试Web服务器从Server 2008升级到Server 2012 R2。 We have have a batch script that deploy our site. 我们有一个部署我们网站的批处理脚本。 When it goes to push the site to the server its now failing. 当它将网站推送到服务器时,它现在失败了。 Whats weird is that is i can publish through visual studio with the same publish profile and everything is fine. 奇怪的是,我可以使用相同的发布配置文件通过visual studio发布,一切都很好。 We were able to upgrade our dev web servers and ever ran into this issue. 我们能够升级我们的开发Web服务器并遇到过这个问题。

Here is what happens when i publish through visual studio 2015 (which works): 以下是我通过visual studio 2015(有效)发布的情况:

>C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe -v \ -p "C:\tfs\TRSApps\Test\Web\Secured Account Access\Member\obj\x86\Release\AspnetCompileMerge\Source" -u "C:\tfs\TRSApps\Test\Web\Secured Account Access\Member\obj\x86\Release\AspnetCompileMerge\TempBuildDir" 
3>Auto ConnectionString Transformed obj\x86\Release\AspnetCompileMerge\TempBuildDir\Web.config into obj\x86\Release\CSAutoParameterize\transformed\Web.config.
3>Copying all files to temporary location below for package/publish:
3>obj\x86\Release\Package\PackageTmp.
3>Start Web Deploy Publish the Application/package to https://web-test3-new:8172/msdeploy.axd?site=TRS ...
3>Adding directory (TRS/subsections/SecureAccountAccess\App_Browsers).
3>Adding directory (TRS/subsections/SecureAccountAccess\bin).
3>Adding directory (TRS/subsections/SecureAccountAccess\Board).
3>Adding directory (TRS/subsections/SecureAccountAccess\Demographics).
3>Adding directory (TRS/subsections/SecureAccountAccess\Estimates).
3>Adding directory (TRS/subsections/SecureAccountAccess\General Information).
3>Adding directory (TRS/subsections/SecureAccountAccess\Includes).
3>Adding directory (TRS/subsections/SecureAccountAccess\Includes\Images).
3>Adding directory (TRS/subsections/SecureAccountAccess\Includes\Scripts).  

Here is the batch statement to deploy the site: 以下是部署站点的批处理语句:

"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"  

afd AFD

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)

Have you installed the server the server side pre-requisites. 您是否已将服务器安装在服务器端的先决条件中。

This link may help. 链接可能有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 升级到.NET 4.5后,MSBuild部署失败 - MSBuild deploy failing after upgrade to .NET 4.5 使用MSBuild将Web部署到服务器 - Web Deploy to Server with MSBuild 2012年之后安装了VS 2010,并且用于Web发布的目标文件的MSbuild路径现在不正确 - Installed VS 2010 after 2012 and MSbuild paths to target file for web publish is incorrect now MSBuild不会在Wndows Server 2012 R2上触发WebDeploy - MSBuild not triggering WebDeploy on Wndows Server 2012 R2 EC2上的TeamCity-找不到MSBuildTools路径,但已在2012 Server R2(AWS)上手动安装 - TeamCity on EC2 - MSBuildTools Path Not Found, yet manually installed on 2012 Server R2 (AWS) Web部署打包不在我的构建服务器上运行 - Web Deploy packaging not working on my build server Web部署后运行部署后脚本 - Running post deployment script after Web Deploy 如何使用命令行msbuild部署VS2012网站项目而不进行预编译? - How to use command line msbuild to deploy VS2012 Web Site project without precompiling it? 迁移到新服务器时,MSBuild Web部署问题 - MSBuild web deploy issue when migrating to new server 使用MSBuild将Visual Studio 2010 Web部署到远程服务器 - Visual Studio 2010 Web Deploy to Remote Server using MSBuild
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM