<authentication mode="Forms" /> and file access

Discussion in 'ASP .Net' started by Anton ml. Vaheie, Feb 16, 2004.

  1. How do I convince (what I have to set in asp.net server) that my program
    that is using
    <authentication mode="Forms" /> can write to, copy, etc. files in
    directories on local disk? I have given full permisions to local directory
    (IUSR_Machinename user), but I still get:

    "System.UnauthorizedAccessException: Access to the path
    "D:\Inetpub\wwwroot\".

    Any idea how to change it?
    Anton, ml.
     
    Anton ml. Vaheie, Feb 16, 2004
    #1
    1. Advertising

  2. Hello,

    you must make sure that the ASPNET account has read/write permissions to the
    folder you want to write to.

    or

    If you want to grant IUSR_Machinename user or the current windows user (if
    anonymous acces in IIS is disables) permissions to write you have to add
    this configuration setting in your web.config file:

    <identity impersonate="true"/>

    This makes that the code is execute as the anonymous user or the
    authenticated user.

    Hope this helps,
    Kristof



    "Anton ml. Vaheie" <> wrote in message
    news:...
    > How do I convince (what I have to set in asp.net server) that my program
    > that is using
    > <authentication mode="Forms" /> can write to, copy, etc. files in
    > directories on local disk? I have given full permisions to local directory
    > (IUSR_Machinename user), but I still get:
    >
    > "System.UnauthorizedAccessException: Access to the path
    > "D:\Inetpub\wwwroot\".
    >
    > Any idea how to change it?
    > Anton, ml.
    >
    >
     
    Kristof Van Praet, Feb 16, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Eric
    Replies:
    2
    Views:
    1,493
    Tommy
    Feb 13, 2004
  2. John J Lee
    Replies:
    3
    Views:
    489
    bruno at modulix
    Dec 1, 2005
  3. Edward Loper
    Replies:
    0
    Views:
    473
    Edward Loper
    Aug 7, 2007
  4. John J Lee
    Replies:
    0
    Views:
    527
    John J Lee
    Aug 7, 2007
  5. Eric
    Replies:
    2
    Views:
    553
Loading...

Share This Page