Knowledgebase: ASP .NET / ASP
When Publishing an application using Visual Studio 2010, file permissions are altered
Posted by on 07 June 2011 10:17 AM

By default, Visual Studio 2010, sets ACLs upon deployment which can cause issues for your application/website. To set VS 2010 to not set ACLs, please follow the instructions below -

http://blogs.iis.net/msdeploy/archive/2010/10/04/skipping-setting-an-acl-in-a-visual-studio-2010-deployment-package.aspx

Reiterated, they are -

1) Edit the .csproj file and set  <IncludeSetAclProviderOnDestination>False</IncludeSetAclProviderOnDestination>

2) msbuild.exe myproject.csproj /p:IncludeSetAclProviderOnDestination=False

This should stop VS 2010 from altering permissions.

(5 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).