Search code examples
asp.netazure-devopsmsdeployazure-pipelines-release-pipeline

VSTS msdeploy.exe error: ERROR_USER_NOT_AUTHORIZED_FOR_CONTENTPATH


I'm trying to create a release definition inside VSTS to deploy my ASP.NET Core 2.0 app on my production server.

I'm using the MSDeployAllTheThings extension: https://marketplace.visualstudio.com/items?itemName=rschiefer.MSDeployAllTheThings

I'm able to deploy inside Visual Studio using the same configuration...

VSTS Config (not working)

enter image description here

VSTS Error

enter image description here

Visual Studio Config (working)

enter image description here


Do you guys have any ideas how to do that?


Solution

  • Not familiar with smarterasp.net. But this should be an issue with that site.

    If you run the same msdeploy command from your local machine manually, you will get the same error message. We didn't see this error when use the same command to deploy to some other host instead of smarterasp.net. And if you add "-verbose" in the command, you will get a more detailed information which indicates that the command failed to adding the virtual path: enter image description here

    When you deploy your project from VS, it use the manifest file and source folder directly rather than "package" method. So you'd either contact smarterasp.net for help or use the same deploy method as Visual Studio or some other deploy method like FTP.