Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
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
  • Administrators
Posted

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.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...