EventLog problem

  • Thread starter Thread starter cmrchs
  • Start date Start date
C

cmrchs

Hi,

when executing

EventLog.CreateEventSource("MySource", "MyNewLog");

do I get an error :

"System.Security.SecurityException: Requested registry access is not allowed."

How come ? How to solve it ?

thnks
Chris


**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
I think you have to be an administrator on the machine in order to create a
new Event Log. Or at least your application must be running in the context
of an administrator.

DalePres
 
Back
Top