簡體   English   中英

升級Web服務器(服務器2012 R2)后,Web部署現在失敗

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

我們剛剛將測試Web服務器從Server 2008升級到Server 2012 R2。 我們有一個部署我們網站的批處理腳本。 當它將網站推送到服務器時,它現在失敗了。 奇怪的是,我可以使用相同的發布配置文件通過visual studio發布,一切都很好。 我們能夠升級我們的開發Web服務器並遇到過這個問題。

以下是我通過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).  

以下是部署站點的批處理語句:

"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

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)

您是否已將服務器安裝在服務器端的先決條件中。

鏈接可能有所幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM