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. File access problems

File access problems

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-net
3 Posts 3 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.
  • S Offline
    S Offline
    Stefan R
    wrote on last edited by
    #1

    Hello again. Feels like I'm posting here on a 200-times a day basis.. My problem is that I get an "access denied" error message when I do this: FileStream fs = new FileStream(path,FileMode.Open, FileAccess.Read,FileShare.Read); I know I have to set persmissions for ASP.NET on the directory/file that is going to be manipulated - I granted the account full permission. Still that annoying error. I'm probably missing something as usual, but please help me. :sigh: / Stefan

    D M 2 Replies Last reply
    0
    • S Stefan R

      Hello again. Feels like I'm posting here on a 200-times a day basis.. My problem is that I get an "access denied" error message when I do this: FileStream fs = new FileStream(path,FileMode.Open, FileAccess.Read,FileShare.Read); I know I have to set persmissions for ASP.NET on the directory/file that is going to be manipulated - I granted the account full permission. Still that annoying error. I'm probably missing something as usual, but please help me. :sigh: / Stefan

      D Offline
      D Offline
      Daniel Santillanes
      wrote on last edited by
      #2

      Grant rights to the user IUSR_<ComputerName>, I think it's not necessary for ASPNET to have rights, correct me if I'm wrong. Also, this depends on what type of authentication you are using. If you are using anonymous authentication, then IUSR_<ComputerName> is the one, or for Windows 2003 Systems, it's IIS_WPG or a name like that. For Windows authentication you need to set the proper rights for users / groups. daniero -- modified at 19:43 Thursday 8th December, 2005

      1 Reply Last reply
      0
      • S Stefan R

        Hello again. Feels like I'm posting here on a 200-times a day basis.. My problem is that I get an "access denied" error message when I do this: FileStream fs = new FileStream(path,FileMode.Open, FileAccess.Read,FileShare.Read); I know I have to set persmissions for ASP.NET on the directory/file that is going to be manipulated - I granted the account full permission. Still that annoying error. I'm probably missing something as usual, but please help me. :sigh: / Stefan

        M Offline
        M Offline
        minhpc_bk
        wrote on last edited by
        #3

        You may find the solution from the article Process and request identity in ASP.NET[^]

        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