Error Writing to Eventlog

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Karthik Srinivasan

    Error Writing to Eventlog

    Hi,

    My web application which runs on Windows 2003 server writes to EventLog
    during application startup but I get the following exception

    Requested registry access is not allowed.

    at Microsoft.Win32 .RegistryKey.Op enSubKey(String name, Boolean writable)
    at System.Diagnost ics.EventLog.Cr eateEventSource (String source, String
    logName, String machineName, Boolean useMutex)
    at System.Diagnost ics.EventLog.Wr iteEntry(String message,
    EventLogEntryTy pe type, Int32 eventID, Int16 category, Byte[] rawData)
    at System.Diagnost ics.EventLog.Wr iteEntry(String message,
    EventLogEntryTy pe type, Int32 eventID, Int16 category)
    at System.Diagnost ics.EventLog.Wr iteEntry(String message,
    EventLogEntryTy pe type, Int32 eventID)
    at System.Diagnost ics.EventLog.Wr iteEntry(String message,
    EventLogEntryTy pe type)
    at VZ.DC.ServicesF actories.DCFact ory..ctor()



    I created the EventLog Source manually as suggested in this article



    still no luck.

    Any suggestions to resolve this issue?

    Thanks In Advance.

    Karthik Srinivasan


Working...