Prevent Web Deploy / Visual Studio Publishing from changing ACL Permissions

When publishing with Web Deploy in conjunction with Visual Studio it can alter the account’s ACL permissions on your web space.  

Sometimes this actually removes Execute permissions as well which will prevent ASP.NET files from running with the following error. Basically it has removed permissions so the compiler cannot run:

[Win32Exception (0x80004005): Access is denied]

To stop this behaviour please edit your publishing profile to include:

<IncludeSetACLProviderOnDestination>False</IncludeSetACLProviderOnDestination>

To do this go to Solutions Explorer under your project in Visual Studio:

  • Expand Properties > PublishProfiles. 
  • Double click the  "yoursite - Web Deploy.pubxml" file.
  • Add the tag above set to false within the <PropertyGroup> section.
  • Save the file.

Now when you publish the ACLs will not be tampered with.

If they already have been broken and you need to fix them to remove the error then simply:

  • Login to your hosting CP.
  • Websites > Click your websites domain.
  • Click the checkbox "Enable Write Permissions".
  • Click Save.

You can also follow the guide from Microsoft linked below in order to do this:

https://docs.microsoft.com/en-us/previous-versions/aspnet/ff398069(v=vs.110)

 

  • web deploy, permissions, acls
  • 29 Users Found This Useful
Was this answer helpful?

Related Articles

How to backup and download your website files

Clients can create a zip archive of their space files ready for download in our control panel:...

How to enable GZIP compression on your website

You can enable GZIP compression on your website is using by following the steps below: Login...

How to deploy your website files from a zip file.

Clients can deploy their website files from a Zip file in our control panel. To do so please...

How to stop or start your website.

You can stop and start websites in our control panel. To do so please follow the instructions...

How to setup a scheduled task

You can set scheduled tasks (CRON) by following the steps below: Login to your hosting control...