2017-06-20 99 views
1

我試圖用MSBuild的命令行發佈我的web應用程序Azure的現有Web應用程序:發佈的Web應用程序天青

.\MSBuild.exe $solutionPath /T:$project /T:Rebuild /p:DeployOnBuild=true /p:WebPublishMethod=MSDeploy /p:PublishProfile=$publishProfilePath /p:password=$password /p:VisualStudioVersion=14.0 /p:AllowUntrustedCertificate=true

,我發現了以下錯誤:

msdeploy error ERROR_COULD_NOT_CONNECT_TO_REMOTESVC: Web deployment task fail ed. (Could not connect to the remote computer ("appName.scm.azurewebsites.net") using the specified process ("Web Management Service") because the server did not respond.

但是當我部署從Visual Studio 15與同一發佈配置文件相同的應用程序它做工精細。你有什麼想法嗎?

謝謝

回答

1

好的,問題出在我們的IT使用代理服務器。 解決的辦法是

<system.net> <defaultProxy useDefaultCredentials="true" /> </system.net>

添加到 「MSBuild.exe.config」 文件