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



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

这是当我通过visual studio 2015发布时发生的事情:

>C:WindowsMicrosoft.NETFrameworkv4.0.30319aspnet_compiler.exe -v  -p "C:tfsTRSAppsTestWebSecured Account AccessMemberobjx86ReleaseAspnetCompileMergeSource" -u "C:tfsTRSAppsTestWebSecured Account AccessMemberobjx86ReleaseAspnetCompileMergeTempBuildDir" 
3>Auto ConnectionString Transformed objx86ReleaseAspnetCompileMergeTempBuildDirWeb.config into objx86ReleaseCSAutoParameterizetransformedWeb.config.
3>Copying all files to temporary location below for package/publish:
3>objx86ReleasePackagePackageTmp.
3>Start Web Deploy Publish the Application/package to https://web-test3-new:8172/msdeploy.axd?site=TRS ...
3>Adding directory (TRS/subsections/SecureAccountAccessApp_Browsers).
3>Adding directory (TRS/subsections/SecureAccountAccessbin).
3>Adding directory (TRS/subsections/SecureAccountAccessBoard).
3>Adding directory (TRS/subsections/SecureAccountAccessDemographics).
3>Adding directory (TRS/subsections/SecureAccountAccessEstimates).
3>Adding directory (TRS/subsections/SecureAccountAccessGeneral Information).
3>Adding directory (TRS/subsections/SecureAccountAccessIncludes).
3>Adding directory (TRS/subsections/SecureAccountAccessIncludesImages).
3>Adding directory (TRS/subsections/SecureAccountAccessIncludesScripts).  

下面是部署站点的批处理语句:

"C:Program Files (x86)MSBuild14.0Binmsbuild.exe" "c:tfstrsappstestWebSecured Account AccessMemberTRSSecureAccess.vbproj" /p:VisualStudioVersion=14.0;DeployOnBuild=True;Configuration=Release;Platform=x86;PublishProfile="c:tfstrsappstestWebSecured Account AccessMemberMy ProjectPublishProfilesMembertest.pubxml";AllowUntrustedCertificate=True;Username=bob;Password=MyPassword /t:Clean;Build /p:OutputPath="c:tfstrsappstestWebSecured Account AccessMemberbin"  

发展署

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:tfstrsappstestWebSecured Account AccessMemberbin_Publish
  edWebsitesTRSSecureAccess_PackageTRSSecureAccess.SourceManifest.xml) to Destination: auto().
C:Program Files (x86)MSBuildMicrosoftVisualStudiov14.0WebMicrosoft.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:tfstrsappstestWebSecured Account AccessMemberTRSSecureAccess.vbproj]
C:Program Files (x86)MSBuildMicrosoftVisualStudiov14.0WebMicrosoft.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:tfstrsappstestWebSecured Account AccessMemberTRSSecureAccess.vbproj]
C:Program Files (x86)MSBuildMicrosoftVisualStudiov14.0WebMicrosoft.Web.Publishing.targets(4276,5): error : Error
 details:r [c:tfstrsappstestWebSecured Account AccessMemberTRSSecureAccess.vbproj]
C:Program Files (x86)MSBuildMicrosoftVisualStudiov14.0WebMicrosoft.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:tfstrsappstes
tWebSecured Account AccessMemberTRSSecureAccess.vbproj]
C:Program Files (x86)MSBuildMicrosoftVisualStudiov14.0WebMicrosoft.Web.Publishing.targets(4276,5): error : The u
nderlying connection was closed: An unexpected error occurred on a send.r [c:tfstrsappstestWebSecured Account Acc
essMemberTRSSecureAccess.vbproj]
C:Program Files (x86)MSBuildMicrosoftVisualStudiov14.0WebMicrosoft.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
trsappstestWebSecured Account AccessMemberTRSSecureAccess.vbproj]
C:Program Files (x86)MSBuildMicrosoftVisualStudiov14.0WebMicrosoft.Web.Publishing.targets(4276,5): error : An ex
isting connection was forcibly closed by the remote host [c:tfstrsappstestWebSecured Account AccessMemberTRSSecu
reAccess.vbproj]
  Publish failed to deploy.
Done Building Project "c:tfstrsappstestWebSecured Account AccessMemberTRSSecureAccess.vbproj" (Clean;Build targe
t(s)) -- FAILED.

Build FAILED.
"c:tfstrsappstestWebSecured Account AccessMemberTRSSecureAccess.vbproj" (Clean;Build target) (1) ->
(MSDeployPublish target) ->
  C:Program Files (x86)MSBuildMicrosoftVisualStudiov14.0WebMicrosoft.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:tfstrsappstestWebSecured Account AccessMemberTRSSecureAccess.vbproj]
C:Program Files (x86)MSBuildMicrosoftVisualStudiov14.0WebMicrosoft.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:tfstrsappstestWebSecured Account AccessMemberTRSSecureAccess.vbproj]
C:Program Files (x86)MSBuildMicrosoftVisualStudiov14.0WebMicrosoft.Web.Publishing.targets(4276,5): error : Error
 details:r [c:tfstrsappstestWebSecured Account AccessMemberTRSSecureAccess.vbproj]
C:Program Files (x86)MSBuildMicrosoftVisualStudiov14.0WebMicrosoft.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:tfstrsappstes
tWebSecured Account AccessMemberTRSSecureAccess.vbproj]
C:Program Files (x86)MSBuildMicrosoftVisualStudiov14.0WebMicrosoft.Web.Publishing.targets(4276,5): error : The u
nderlying connection was closed: An unexpected error occurred on a send.r [c:tfstrsappstestWebSecured Account Acc
essMemberTRSSecureAccess.vbproj]
C:Program Files (x86)MSBuildMicrosoftVisualStudiov14.0WebMicrosoft.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
trsappstestWebSecured Account AccessMemberTRSSecureAccess.vbproj]
C:Program Files (x86)MSBuildMicrosoftVisualStudiov14.0WebMicrosoft.Web.Publishing.targets(4276,5): error : An ex
isting connection was forcibly closed by the remote host [c:tfstrsappstestWebSecured Account AccessMemberTRSSecu
reAccess.vbproj]
    0 Warning(s)
    1 Error(s)

是否安装了服务器端服务器端必备条件。

最新更新