Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Server won't let my app Delete

Server won't let my app Delete

Scheduled Pinned Locked Moved Web Development
csharpasp-netsysadminwindows-adminhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Budsy
    wrote on last edited by
    #1

    My ASP.NET web application has a file upload feature. I can upload files, and download those files, but the server won't let me delete them (using System.IO.File.Delete and similar), giving an error of System.UnauthorizedAccessException: Access to the path "" is denied. Anybody suggest how I might get my app to have the required permission to Delete the file? ...and, while we're at it, why can I write and read, but not delete?? Using IIS, f

    S 1 Reply Last reply
    0
    • B Budsy

      My ASP.NET web application has a file upload feature. I can upload files, and download those files, but the server won't let me delete them (using System.IO.File.Delete and similar), giving an error of System.UnauthorizedAccessException: Access to the path "" is denied. Anybody suggest how I might get my app to have the required permission to Delete the file? ...and, while we're at it, why can I write and read, but not delete?? Using IIS, f

      S Offline
      S Offline
      Sage
      wrote on last edited by
      #2

      Read and Write are 2 separate permissions in Windows where as Delete is probably considered Modify and your admin might not have granted you (IUSER_MachineName) access to that function. Look into that for starters. - Sage

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups