Results 1 to 8 of 8

Thread: [02/03] permissions and identity.

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    [02/03] permissions and identity.

    I have a ASP.NET application (.NET 1.1) that reads and writes XML files from an orders directory off the application root..


    Running XP SP2 IIS 5.1 for development.

    so
    directory structure looks like this...


    [bin]
    [orders]
    [images]
    default.aspx
    someotherpage.aspx

    So in one of my aspx pages, I read the XML file, which works fine, and then in another routine, I write changes back to the XML file.

    I get an error writing back to the XML file, its a permissions error
    {System.UnauthorizedAccessException}

    I have given the ASPNET account on my machine FULL CONTROL over the applications root folder, which is inherent to the orders folder where the xml files sit.

    I can bypass this error by adding this line to my web.config
    <identity impersonate="true" userName="username" password="password" />
    where the username and pass are my personal ones that I log onto the computer with.

    What am I missing that is preventing the ASPNET account from writing to the file?

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539

    Re: [02/03] permissions and identity.

    What type of authentication are you using on IIS?
    it's under the directory security tab of the directory

  3. #3

    Thread Starter
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [02/03] permissions and identity.

    Anonymous access (which uses acct IUSR_COMPUTERNAME)

    and also Integrated Windows authentication.

  4. #4
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539

    Re: [02/03] permissions and identity.

    god help you when u run into security issues with asp.net.
    u said u gave ASPNET full permissions, did you try giving permissions to IUSR_machineName?
    give full perms to both aspnet and IUSR, if that doenst help we can try few other things

  5. #5

    Thread Starter
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [02/03] permissions and identity.

    Nope, that doesn't change anything.

  6. #6
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539

    Re: [02/03] permissions and identity.

    what happens if you give "everyone" group full perms?

  7. #7

    Thread Starter
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [02/03] permissions and identity.

    Well I will assume that will work, but that is obviously in no way, shape, or form, the correct way to set permissions on a folder....

  8. #8
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539

    Re: [02/03] permissions and identity.

    absolutely not the righ way but one step at a time.
    try deleting the virtual directory and recreating the app
    also is this happening on a windows xp or what?

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