I must give ACL permissions to ASPNET account on the file.How to do this from ASP.NET code(VB.NET)
D djoledjole Apr 6, 2005 #1 I must give ACL permissions to ASPNET account on the file.How to do this from ASP.NET code(VB.NET)
J James Steele Apr 6, 2005 #2 Hi djoledjole, 1) You will have to use the Win32 API call SetNamedSecurityInfo API function from advapi32.dll. A big pain. or 2) Have your app use cacls.exe [resource] /E /G: [user_account]:F Dino Esposito explains this all very nicely on his weblog. http://weblogs.asp.net/despos/archive/2003/12/22/45090.aspx Enjoy!
Hi djoledjole, 1) You will have to use the Win32 API call SetNamedSecurityInfo API function from advapi32.dll. A big pain. or 2) Have your app use cacls.exe [resource] /E /G: [user_account]:F Dino Esposito explains this all very nicely on his weblog. http://weblogs.asp.net/despos/archive/2003/12/22/45090.aspx Enjoy!