通过命令行错误将 Web 应用程序发布到 Azure



我正在尝试从命令行使用 MSBuild 将我的 Web 应用程序发布到 Azure 现有 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部署具有相同发布配置文件的相同应用程序时,它工作正常。你知道出了什么问题吗?

谢谢

好的,问题出在我们使用代理服务器的IT上。解决方案是添加

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

到"MSBuild.exe.config"文件

最新更新