Click to See Complete Forum and Search --> : ASPX / IIS Permissions problem


plnelson
December 16th, 2008, 02:07 PM
I'm setting up IIS 5.1 on XP Pro SP2. I have a virtual directory with a .HTM and 2 .ASPX files. IIS can see all 3 files from its explorer and it can display the the .HTM file in its browser with no problem but I get a file access problem ...

Server cannot access application directory 'C:\Documents and Settings\peter\My Documents\SW\WebProg\SW\HelloWorld\HelloWorldVirtDir\'. The directory does not exist or is not accessible because of security settings.

... on the two ASPX files.

If I put all 3 files in Inetpub\wwwroot there's no problem displaying any of them.

I set the permissions for my virtual directory path to be the same as the InetPub\wwwroot for IUSR_<machinename> and IWAM_<machinename> but it didn't help. So I set my whole C: drive to have those permission for those two accounts, but it still didn't help!

Suggestions? Thanks in advance!

eclipsed4utoo
December 21st, 2008, 11:01 AM
you also need to set the permissions of those folders for the ASPNET account.