2017-06-20 148 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” 文件