Security exception while trying to wrtite Event Log
-
Hi Gurus! I developing a C# asp.net application. I want my application write something to it's own event log, but when I trying to do this I got folllowing error - "Requested Registry Access Is Not Allowed" Error Message When ASP.NET Application Tries to Write New EventSource in the EventLog I found some solutiong here - http://support.microsoft.com/?id=329291 but it not helps in my case... I have done all modifications to my code exactly like in former article, but I still recieve this error... I hope someone could help me. Thanx. xedom developers team
-
Hi Gurus! I developing a C# asp.net application. I want my application write something to it's own event log, but when I trying to do this I got folllowing error - "Requested Registry Access Is Not Allowed" Error Message When ASP.NET Application Tries to Write New EventSource in the EventLog I found some solutiong here - http://support.microsoft.com/?id=329291 but it not helps in my case... I have done all modifications to my code exactly like in former article, but I still recieve this error... I hope someone could help me. Thanx. xedom developers team
Alex Getman wrote: I have done all modifications to my code exactly like in former article, but I still recieve this error... Its not a code-alone fix. The registry entry needs to be create on the machine with a user with sufficient priviliges. Alex Getman wrote: xedom developers team 403: Forbidden :( top secret xacc-ide 0.0.1
-
Alex Getman wrote: I have done all modifications to my code exactly like in former article, but I still recieve this error... Its not a code-alone fix. The registry entry needs to be create on the machine with a user with sufficient priviliges. Alex Getman wrote: xedom developers team 403: Forbidden :( top secret xacc-ide 0.0.1
1. So if I understood you right - there is no solution exists for my problem throught code tricks? 2. I know. It's all about money :(( xedom developers team
-
1. So if I understood you right - there is no solution exists for my problem throught code tricks? 2. I know. It's all about money :(( xedom developers team
Alex Getman wrote: there is no solution exists for my problem throught code tricks? You have to have appropriate permissions to write to the registry, does that make sense? - Nick Parker
My Blog | My Articles -
Alex Getman wrote: there is no solution exists for my problem throught code tricks? You have to have appropriate permissions to write to the registry, does that make sense? - Nick Parker
My Blog | My ArticlesWell, yes, it does. All I need it's just to install my application and when an error occurs to write some entry to the EventLog. Is possible to do it in some way without manual registry tuning? xedom developers team
-
Well, yes, it does. All I need it's just to install my application and when an error occurs to write some entry to the EventLog. Is possible to do it in some way without manual registry tuning? xedom developers team
Alex Getman wrote: All I need it's just to install my application and when an error occurs to write some entry to the EventLog. Is possible to do it in some way without manual registry tuning? You stated that your application was an ASP.NET application, which changes things. The question should be in the ASP.NET forum. You need to understand that your ASP.NET application is running under the ASPNET user account, which does not have appropriate privileges to create the event source. You can programmatically change the registry (to thus allow you to create the event source), however the account you are running as (ASPNET in your case) must have appropriate permissions to do so. Making changes to the registry is something that can be done with an install package, however the person installing the application also needs to have appropriate rights as well. Does that make sense? - Nick Parker
My Blog | My Articles