【问题标题】:Publishing web application to Azure via command line error通过命令行错误将 Web 应用程序发布到 Azure
【发布时间】:2017-06-20 13:35:39
【问题描述】:

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

谢谢

【问题讨论】:

    标签: azure msbuild


    【解决方案1】:

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

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

    到“MSBuild.exe.config”文件

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多