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. ASP.NET
  4. Access to file denied

Access to file denied

Scheduled Pinned Locked Moved ASP.NET
asp-netcsharpsecurityhelpquestion
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.
  • O Offline
    O Offline
    oceanexplorer
    wrote on last edited by
    #1

    Hi, I'm currently working between two technologies, classic asp and ASP.NET. A file is uploaded to a folder using the classic asp, the asp.net then tries to access this file later on, but I am receiving an "Access denied message" to the file. I know that this is because the file does not have the ASPNET user account added to the security permssions. I have added the ASPNET user to the folder the file is stored in, and set that any new files inherit the permissions of the parent. Now this works for all the user accounts but the ASPNET user, it just refuses to add the security permission. Is there an easy way to solve this, or perhaps add a user permission to the file progrmamtically? Any help much appreciated Paul Custance

    S 1 Reply Last reply
    0
    • O oceanexplorer

      Hi, I'm currently working between two technologies, classic asp and ASP.NET. A file is uploaded to a folder using the classic asp, the asp.net then tries to access this file later on, but I am receiving an "Access denied message" to the file. I know that this is because the file does not have the ASPNET user account added to the security permssions. I have added the ASPNET user to the folder the file is stored in, and set that any new files inherit the permissions of the parent. Now this works for all the user accounts but the ASPNET user, it just refuses to add the security permission. Is there an easy way to solve this, or perhaps add a user permission to the file progrmamtically? Any help much appreciated Paul Custance

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      First try to access that file by giving permision to everyone in permission propertirs of folder. then if you are able to access then try with specific permissions

      Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

      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