Assigning permission for aspnet user to web directory folder
-
I have a web application. It has a folder named "data" under the project dir. My web application creates files in "data" folder. I know in order to create file in "data" folder, aspnet should have permission. For that we have to go to property of the web application folder. There under the tab Security ,press Add button.A form appears Write aspnet to the textbox and press ok. Then press checkbox to give full control to aspnet user. It works fine when developing. My problem is : when I create a web installation package of that application and install it to my client computer, I have to repeat above procedure. Is there any way to assign aspnet user full control of the folder "data" ? I mean without repeating above procedure, could I dynamically/programmatically assign full access over the "data" folder to aspnet user? :) Any information is highly appreciated? Thanks for you valuable comments. prakash
-
I have a web application. It has a folder named "data" under the project dir. My web application creates files in "data" folder. I know in order to create file in "data" folder, aspnet should have permission. For that we have to go to property of the web application folder. There under the tab Security ,press Add button.A form appears Write aspnet to the textbox and press ok. Then press checkbox to give full control to aspnet user. It works fine when developing. My problem is : when I create a web installation package of that application and install it to my client computer, I have to repeat above procedure. Is there any way to assign aspnet user full control of the folder "data" ? I mean without repeating above procedure, could I dynamically/programmatically assign full access over the "data" folder to aspnet user? :) Any information is highly appreciated? Thanks for you valuable comments. prakash