Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've knocked up a simple web application that lists all files or a particular type in a particular folder and renders them as a series of LinkButtons in a ListView control - when the user clicks on a LinkButton, the relevant file is streamed to the user. I've done this a dozen times in ASP Classic, but this is a new ASP.NET version.

When I run this on my development machine, it runs fine - but now I've set it up on the live server I'm experiencing problems:

"Access denied to 'X:\mydir\'. Failed to start monitoring file changes"

The application is configured (currently) to use Anonymous Authentication, but eventually it will use Windows Authentication.

Having looked at the permissions situation, I can confirm that the ASPNET user and the IUSR_ServerName users have permissions to the parent of the application (and everything underneath).

The host server is Windows Server 2003 R2.

Any ideas?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I've managed to fix the problem - though given all the tinkering I've done, it's hard to be certain what steps constituted the fix.

It appears that the problem was due to the Network Service (the identity used in the Default Application Pool) not having sufficient permissions to each level in the folder hierarchy.

I simply gave the account Read & Execute permissions to the top level folder on the drive and these permissions were inherited down the folder tree, to the application directory and beyond.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.