ASPX File Upload Issue

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default ASPX File Upload Issue

    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 Guest

  2. Similar Questions and Discussions

    1. How to upload a file to 2 FTP sites without an upload component for company
      Hi All I can't get round this because it's a local government thing, but I've done a CMS for a school (in ASP classic) that allows them to upload...
    2. .aspx issue
      I am able to see my organizations web pages in code view, but I am unable to see them in design view. All I see in design view is a small shield...
    3. Upload Friendly (Multiple File Upload Applet)
      Title : Upload Friendly (Multiple File Upload Applet) Description : UploadFriendly is an easy to use Java Applet that will allow multiple file...
    4. wss upload.aspx
      I am using wss on 2003 with remote sql 2 I want to customize upload.aspx I have 2 custom columns I added to doc lib the upload.aspx has them as...
    5. including one aspx file in another aspx file
      Is there a way is asp.net that I can include another aspx file ?. We can do this in asp by using include statement.
  3. #2

    Default Re: ASPX File Upload Issue

    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
    [url]http://staff.develop.com/ballen[/url]


    > 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 Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139