« Previous Next »

Thread: ASP.NET Grant Folder Permissions for ALL versions of IIS.

Last post 10-26-2007 7:07 PM by benhinman. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 10-26-2007, 10:44 AM

    • benhinman
    • Not Ranked
    • Joined on 10-26-2007, 10:34 AM
    • Posts 2

    ASP.NET Grant Folder Permissions for ALL versions of IIS.

    Hi All,

    Obligatory: "I know it's been asked before...".

    I can't seem to find a straight answer anywhere to the following question:

    I need to deploy an asp.net web application to various different OS's running varying versions of IIS. This application needs access to certain folders on the local filesystem. In IIS 5.1 I add the ASPNET user account with the relevant read/write permissions. As I understand it, Windows Server 2003 machines running IIS 6 do not have this user installed. I'm guessing IIS 7 is also different. What I need is a user that transcends all versions of IIS on all the different OS's. Is this possible? If so, what user is it. If not, which usernames will I require for each version? (I don't really want to have ASPNET user for IIS 5.1 and IIS_WPG for 6 and I-whatever for IIS 7!!!)...

    Thanks in advance for any help, any more reading of Microsoft KB articles on this will make my head explode!

    Ben

  • 10-26-2007, 5:18 PM In reply to

    Re: ASP.NET Grant Folder Permissions for ALL versions of IIS.

    IIS 5.x uses ASPNET, 6 and 7 use NETWORK SERVICE.  But you can create an account and assign your application pool to use that (IIS 6/7) or assign it as the ASP.NET identity.  You could also use the IIS_WPG group to grant access to for IIS 6, and you could create this group for whatever user accounts you need in other OS's.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 10-26-2007, 7:07 PM In reply to

    • benhinman
    • Not Ranked
    • Joined on 10-26-2007, 10:34 AM
    • Posts 2

    Re: ASP.NET Grant Folder Permissions for ALL versions of IIS.

    Very helpful. Unfortunately, my problem is worsened by the fact that I am creating an installer to add these permissions. So I'm guessing I either have to conditionally place permissions on folders dependent on what version of IIS the user is running, or I will have to create custom actions to create new accounts and assign them to the app pool. Neither seem too appealing, but thanks for the info - one step closer!
Page 1 of 1 (3 items)
Microsoft Communities