Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Are you having Permission Denied Problems?

Status
Not open for further replies.

jfrost10

Programmer
Joined
Jun 3, 2001
Messages
2,004
Location
CA
I've noticed a few posts recently talking about how their asp.net applications can't access this database file, or this directory, etc. I've also noticed that alot of people are granting access to various accounts that they may not be needing to.

If your asp.net application uses files that may not be local to your project (and even then, this may apply), then you need to grant directory persomission to the aspnet user account. This is the account that the asp.net process runs under, and if your project requies you to access an Access database, modify a text file, etc, then the permission for that directory (or file if you want to get super granular) must be set.

Hope this helps to clear up the whole permission issue.
:)

D'Arcy
 
Just to further clarify:

if you want to set permissions, right click on the folder/file. Select Properties, and security.

Add the aspnet user to the list, and grant whatever permissions you want to give aspnet.

Voila!

D'Arcy
 
Also, in SQL Server, you need to add the ASPNET user to your database, in a role that has db_datareader and db_datawriter permissions.

Thomas D. Greer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top