1

I'm trying to publish my web application to Azure existing web application with MSBuild from command line:

.\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

and I'm getting the following error:

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.

But when I deploy the same application with same publishing profile from Visual Studio 15 it work fine. Do you have any idea what is wrong?

Thanks

1 Answer 1

2

OK, the problem was with our IT using a proxy server. The solution is to add

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

to the "MSBuild.exe.config" file

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.