How can I stop Web Deploy resetting my folder permissions?

If you are deploying from Visual Studio you will need to alter your project file to prevent Web Deploy changing the permissions.


To accomplish this, simply navigate to your project and find the file with the extension .csproj


Find the section which looks similar to as follows:


<propertygroup condition=” ‘$(Configuration)|$(Platform)’ ==’Release|AnyCPU’ “> </propertygroup>


Then include this element:



If you placed your <includesetaclproviderondestination> within the ‘Release|AnyCPU’ section but built your project within the Debug configuration, then the <includesetaclproviderondestination> attribute may not invoke on the production server. To make sure your permission is not altered create the <includesetaclproviderondestination> attribute on both the ‘Release|AnyCPU’ and ‘Debug|AnyCPU’ group of your project file.


If you are deploying from Azure DevOps, then include the following within the MSBuild Arguements:



  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Can I deploy from Azure DevOps

Yes, this article in the Skrift Magazine shows you how:...

How do I connect via FTP?

Connecting via FTP to your web hosting is quick and easy. Ensure you have an FTP client...

What is the Web Deploy configuration?

Use the settings below to configure your application for Web Deploy. Be sure to replace...

How can I deploy from AppVeyor

First you will need to download your Publishing Profile from within your SolidCP account. Head...

What is the passive FTP port range?

Our passive FTP port range is: 49152 - 65534