EventLog problem

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

DalePres

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top