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. Can write to but not read file from inetpub [modified]

Can write to but not read file from inetpub [modified]

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsecurityhelp
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.
  • A Offline
    A Offline
    ASPnoob
    wrote on last edited by
    #1

    Hi, the following are the steps I took to grant the asp.net account write/read access

    I've selected Security tab-> ASP.NET Machine Account -> Add tab -> Advance tab-> Find Now tab -> Machine/ASP.NET Account -> OK -> Allow -> Apply -> OK

    What I wanted to do is to access the file within inetpub's subfolder after the file has been created. I was successful in creating the file but I can not access and read the file in the folder. Please help, thank you in advance for your effort. -- modified at 4:38 Tuesday 7th August, 2007

    R V 2 Replies Last reply
    0
    • A ASPnoob

      Hi, the following are the steps I took to grant the asp.net account write/read access

      I've selected Security tab-> ASP.NET Machine Account -> Add tab -> Advance tab-> Find Now tab -> Machine/ASP.NET Account -> OK -> Allow -> Apply -> OK

      What I wanted to do is to access the file within inetpub's subfolder after the file has been created. I was successful in creating the file but I can not access and read the file in the folder. Please help, thank you in advance for your effort. -- modified at 4:38 Tuesday 7th August, 2007

      R Offline
      R Offline
      rama charan
      wrote on last edited by
      #2

      may be you might not have closed the writer object of the file so you not able to access the file ..i think so note that before you read the file you need to close the writer

      Rama Charan Prasad "Be happy and Keep smiling.Thats what u want be always..:)"

      1 Reply Last reply
      0
      • A ASPnoob

        Hi, the following are the steps I took to grant the asp.net account write/read access

        I've selected Security tab-> ASP.NET Machine Account -> Add tab -> Advance tab-> Find Now tab -> Machine/ASP.NET Account -> OK -> Allow -> Apply -> OK

        What I wanted to do is to access the file within inetpub's subfolder after the file has been created. I was successful in creating the file but I can not access and read the file in the folder. Please help, thank you in advance for your effort. -- modified at 4:38 Tuesday 7th August, 2007

        V Offline
        V Offline
        Vasudevan Deepak Kumar
        wrote on last edited by
        #3

        NULL the streamwriter object. Otherwise, I think, you would get 'The process can not access this file because it is being used by another process'.

        Vasudevan Deepak Kumar Personal Homepage Tech Gossips

        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