CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2008
    Posts
    25

    ASPX / IIS Permissions problem

    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!

  2. #2
    Join Date
    Nov 2007
    Location
    .NET 3.5 / VS2008 Developer
    Posts
    624

    Re: ASPX / IIS Permissions problem

    you also need to set the permissions of those folders for the ASPNET account.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured