RKennedy9064
RKennedy9064

Reputation: 123

ASP.NET Credentials Issue

I've been working on an asp.net 4.0 website and seem to be having an issue with deleting from the database stored in the app_data folder.

I created a domain group in the actice directory and used the web.config file to restrict access to certain pages that allow modifcation of the database. Everything worked fine on my test machine and the production server, but the issue is that on the server, even though it recognizes the user when you access the page, when you try to delete an item it denies access and does not allow you to delete the item.

The users had read/write permissions to the folder, but it still denied access. I did some testing and allowed everyone read/write acces, and it allowed me to delete, but I don't like having that option set up.

Does anyone know what causes this issue and what the proper fix would be? I'm assuming I have to let the website know which user is running the application before it tries to delete so they can write to the database, but I thought it would do that automatically since I used Windows authentication.

If anyone has any information I would greatly appreciate it.

Upvotes: 1

Views: 214

Answers (1)

user191966
user191966

Reputation:

The user account that is running the application pool for your website is the only user account that needs MODIFY permissions to that database file.

Upvotes: 1

Related Questions