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