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. Granting write privileges to the aspnet user account

Granting write privileges to the aspnet user account

Scheduled Pinned Locked Moved ASP.NET
questionasp-netdatabasedata-structureshelp
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.
  • U Offline
    U Offline
    User 1231056
    wrote on last edited by
    #1

    Hi: I have this method that retreives a BLOB (store as a Array of Bytes)from my DataBase. This method needs to create a file (*.jpeg in my case) to hold the output. Source Code: fs = new FileStream("proyecto" + id_proyecto + ".jpeg", FileMode.OpenOrCreate, FileAccess.Write); I'm getting the following error message : Access to the path : "C:\WINDOWS\system32\proyecto6.jpeg" is denied I know the cause of this error, i do not have enough privileges. DOES ANY ONE KNOW HOW CAN I GRANT THE WRITE PRIVILEGE TO MY ASPNET USER ACCOUNT? THANKS A LOT GLENN GUZMAN SAN JOSE, COSTA RICA.

    Z T 2 Replies Last reply
    0
    • U User 1231056

      Hi: I have this method that retreives a BLOB (store as a Array of Bytes)from my DataBase. This method needs to create a file (*.jpeg in my case) to hold the output. Source Code: fs = new FileStream("proyecto" + id_proyecto + ".jpeg", FileMode.OpenOrCreate, FileAccess.Write); I'm getting the following error message : Access to the path : "C:\WINDOWS\system32\proyecto6.jpeg" is denied I know the cause of this error, i do not have enough privileges. DOES ANY ONE KNOW HOW CAN I GRANT THE WRITE PRIVILEGE TO MY ASPNET USER ACCOUNT? THANKS A LOT GLENN GUZMAN SAN JOSE, COSTA RICA.

      Z Offline
      Z Offline
      ZimCoder
      wrote on last edited by
      #2

      Sorry do you want a script that dynamically changes the security settings for your asp.net account or the steps to take when configuring your web server when deploying asp.net accout?? zimcoder What Democracy?? Jesus Christ is King and if you do not like... well you can go to hell!

      1 Reply Last reply
      0
      • U User 1231056

        Hi: I have this method that retreives a BLOB (store as a Array of Bytes)from my DataBase. This method needs to create a file (*.jpeg in my case) to hold the output. Source Code: fs = new FileStream("proyecto" + id_proyecto + ".jpeg", FileMode.OpenOrCreate, FileAccess.Write); I'm getting the following error message : Access to the path : "C:\WINDOWS\system32\proyecto6.jpeg" is denied I know the cause of this error, i do not have enough privileges. DOES ANY ONE KNOW HOW CAN I GRANT THE WRITE PRIVILEGE TO MY ASPNET USER ACCOUNT? THANKS A LOT GLENN GUZMAN SAN JOSE, COSTA RICA.

        T Offline
        T Offline
        Tim Featherston
        wrote on last edited by
        #3

        Glenn, you probably don't want to be writing it to Windows\System32 folder. WHatever folder you decide on right click and go to Properties|Security. If your ASPNET account isn't in the Group or User Name list box, click the Add button and then add the ASPNET account. Click the Allow check box for Write (and any other permissions you want). TF Tim Featherston www.QBSix.com

        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