How do i give write permissios to a folder through code
-
Help!!! How do i give write permissios to a folder through code and whenever not needed i can take away the permissions. How 2 achieve this???
-
Help!!! How do i give write permissios to a folder through code and whenever not needed i can take away the permissions. How 2 achieve this???
I'm not an expert on this subject but I think that usually it is not possible because changing a folder permissions require special code permissions that the ASP.NET process doesn't have. Usually if your web application need to write on a folder you must ask the administrator to manually set the write permissions. If you use a shared hosting probably you have a control panel to set the permissions on the folder. Consider also that usually for ASP.NET 2.0 the App_Data directory is already configured with the right write permissions (if configured correctly). Davide
-
Help!!! How do i give write permissios to a folder through code and whenever not needed i can take away the permissions. How 2 achieve this???
-
Help!!! How do i give write permissios to a folder through code and whenever not needed i can take away the permissions. How 2 achieve this???
Simulate a administrator in your csharp code.:doh:
:^):^):^):^):^):^):^):^):^):^):^):^) :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::^):^):^):^)▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):^):^):^):^):^):^):^):^):^):^):^)