1,105,592 Community Members

Access denied creating App_Data subdirectory

Member Avatar
Junior Poster in Training
97 posts since Oct 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]

Having this error appear when I hit a button in a gridview to unlock a user. The description with the error is
Description: For security reasons, the identity 'IIS APPPOOL\ASP.NET v4.0' (under which this web application is running), does not have permissions to create the App_Data subdirectory within the application root directory. ASP.NET stores the Microsoft SQL Express Database file used for services such as Membership and Profile in the App_Data subdirectory of your application.

How do I fix this? also it says in the description SQL Express, I am not using express just the normal SQL server management studio. From searching online some of the answers have been to add <remove name="LocalSqlServer"/>
<add name="LocalSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=SSPI;Initial Catalog=jorya_aspnetdb"/> to the web config file, tried this and it still didn't work, think its because for the connection strings it's for SQLExpress.

Deleted Member

Access denied creating App_Data subdirectory

Read this


How do I fix this?

It's not related to the code. It's the software. You need to set the rules.

This article has been dead for over three months: Start a new discussion instead
Start New Discussion
Tags Related to this Article