2017-06-20 37 views
1

公開Webアプリケーション私は、コマンドラインからMSBuildので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でプロキシサーバーを使用していることでした。 ソリューションは、 "MSBuild.exe.config" ファイルに

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

を追加することです