Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 4th, 2003, 07:30 PM
cjo cjo is offline
Authorized User
 
Join Date: Oct 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default EventLog.CreateEventSource

Help! How do I modify the required permissions as indicated in the error message below in order to create a new Event Log?

Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Requested registry access is not allowed.

Source Error:


Line 25: if(!(EventLog.SourceExists(SourceName)))
Line 26: {
Line 27: EventLog.CreateEventSource(SourceName, LogName);
Line 28: }
Line 29:


Source File: C:\BegASPNET\ch17\entrytolog.aspx Line: 27


Thanks in advance.

 
Old December 5th, 2003, 12:15 PM
Registered User
 
Join Date: Dec 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am also facing the same problem. I read on this forum that we can fix it by changing the security setting for the file AppEvent.evt but I don't know where to set security for the Appevent.evt file, it is in root/windows/system32/config directory. I am working in windows XP Pro.



Thanks
Sangeeta
 
Old December 7th, 2003, 05:41 PM
cjo cjo is offline
Authorized User
 
Join Date: Oct 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the reply.

Here's a link that seems to address this error message. I'm still struggling with it, but let me know if it helps you.

http://support.microsoft.com/default...en-us%3B329291





Similar Threads
Thread Thread Starter Forum Replies Last Post
EventLog error Bob Bedell ASP.NET 1.0 and 1.1 Professional 0 November 26th, 2006 09:59 PM
How to fix this error massage for the EventLog?? riki_gill ASP.NET 1.x and 2.0 Application Design 0 October 31st, 2006 12:26 AM
How to write the Exception (e1) to the EventLog?? riki_gill ASP.NET 1.x and 2.0 Application Design 0 October 28th, 2006 02:58 PM
Log4Net EventLog Problem prerak_v_shah C# 0 April 25th, 2006 04:22 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.