We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Access denied creating App_Data subdirectory

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.

2
Contributors
1
Reply
12 Hours
Discussion Span
3 Months Ago
Last Updated
19
Views
coder91
Junior Poster in Training
97 posts since Oct 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 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.

LastMitch
Industrious Poster
4,374 posts since Mar 2012
Reputation Points: 149
Solved Threads: 349
Skill Endorsements: 47

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.0514 seconds using 2.65MB