In some cases, you may find that after publishing a project using ASPNet web deployment, IUSR cannot write to the root directory or any files inside it (except App_Data).
By default, Web Deploy sets the read-only ACL for ASP.NET IUSR. So that this does not cause problems when publishing your application, you need to find the project file and make some changes. The project file will end with the extension .vbproj for applications written in Visual Basic or .csproj for applications written in C #. In the project file, find:
<propertygroup condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "></propertygroup>
and change it to:
<propertygroup condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <includesetaclproviderondestination>False</includesetaclproviderondestination> </propertygroup>
This ensures that the ACL will not be modified by Web Deploy.
If you have already deployed a third-party hosting provider, you may need to contact them to obtain your reset permissions before performing another deployment.
Paul devenney
source share