qex Posted May 7, 2004 Posted May 7, 2004 I am getting a .net Framework error that says it can not access a particular directory which is c:\program files\<program name>\logs\logname.log and then in the exception text it says its a System.UnauthorizedAccess Exception. I am running the program on win2k it was installed under the administrator and this error comes up when a plain user tries to run the program. What do I have to do to give my program the security priveleges that it needs to function in the less priveleged user world of win2k. Thanks in advance Quote
Administrators PlausiblyDamp Posted May 7, 2004 Administrators Posted May 7, 2004 You would need to change the permissions on the folder itself - not just granting them to the application. However this is a really bad idea, the increased security is there for a reason - not allowing normal users to write to the program files folder helps reduce infections from virii, stops users deleting application files etc. by mistake. You may be better off either logging to the users home folder / profile or creating a separate log folder outside of the program files folder and logging there. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
qex Posted May 7, 2004 Author Posted May 7, 2004 So is this just a program files thing then. Is it pretty much just those folders that ask you if you want to see the content that are like this. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.