ASPX File Upload Issue

Discussion in 'ASP .Net Security' started by Jason Myers, Apr 26, 2005.

  1. Jason Myers

    Jason Myers Guest

    Hi

    I am trying to build an aspx application. The application needs to upload
    images to a web folder. Uploading images works fine, but if the image being
    uploaded exists, it needs to be deleted first. I use dotnet's IO objects do
    do the work, but keep getting an access denied security issue. I have
    checked the rights to all nessessry directories, and made sure that ASP.NET
    has full controll. I have done the same for IWAM and IUSER, and even in
    deperation, given EVERYONE full controll, but no luck.

    Any ideas will be appreciated.

    Thanks
    Jason Myers, Apr 26, 2005
    #1
    1. Advertising

  2. Jason Myers

    Brock Allen Guest

    The identity ASP.NET runs under isn't the same as it was in IIS (at least
    by default). Under Windows 2000 and XP, the account is ASPNET and under Windows
    2003 it's Network Service.

    Now, given that you say you've given everyone on the machine perms to the
    file, it makes me wonder if perhaps the file's locked by someone else and
    this is your problem. Is it possible that's it's in use or you've forgotten
    to close your reference to the file (in essence, leaking the file handle)?

    What's the exact error you get back?

    -Brock
    DevelopMentor
    http://staff.develop.com/ballen



    > Hi
    >
    > I am trying to build an aspx application. The application needs to
    > upload images to a web folder. Uploading images works fine, but if the
    > image being uploaded exists, it needs to be deleted first. I use
    > dotnet's IO objects do do the work, but keep getting an access denied
    > security issue. I have checked the rights to all nessessry
    > directories, and made sure that ASP.NET has full controll. I have done
    > the same for IWAM and IUSER, and even in deperation, given EVERYONE
    > full controll, but no luck.
    >
    > Any ideas will be appreciated.
    >
    > Thanks
    >
    Brock Allen, Apr 26, 2005
    #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. HVG
    Replies:
    2
    Views:
    2,476
  2. Ryan Taylor
    Replies:
    2
    Views:
    945
    Ryan Taylor
    Nov 10, 2004
  3. John M
    Replies:
    1
    Views:
    1,138
    Kumar Reddi
    May 29, 2005
  4. =?Utf-8?B?U2FyYXY=?=

    Upload a file without file Upload control - ASP.Net

    =?Utf-8?B?U2FyYXY=?=, Aug 2, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    2,435
    Bruce Barker
    Aug 3, 2005
  5. Heather Fraser
    Replies:
    0
    Views:
    622
    Heather Fraser
    Jul 5, 2004
Loading...

Share This Page