1,105,592 Community Members

Access denied creating App_Data subdirectory

Member Avatar
coder91
Junior Poster in Training
97 posts since Oct 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
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.

LastMitch
Deleted Member
 
0
 

Access denied creating App_Data subdirectory

Read this

http://msdn.microsoft.com/en-us/library/879kf95c%28en-US,VS.80%29.aspx

How do I fix this?

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

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