Error Creating Event Source

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default Error Creating Event Source

    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.OpenSubKey(String name, Boolean writable)
    at System.Diagnostics.EventLog.CreateEventSource(Stri ng source, String
    logName, String machineName, Boolean useMutex)
    at System.Diagnostics.EventLog.WriteEntry(String message,
    EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
    at System.Diagnostics.EventLog.WriteEntry(String message,
    EventLogEntryType type, Int32 eventID, Int16 category)
    at System.Diagnostics.EventLog.WriteEntry(String message,
    EventLogEntryType type, Int32 eventID)
    at System.Diagnostics.EventLog.WriteEntry(String message,
    EventLogEntryType type)
    at VZ.DC.ServicesFactories.DCFactory..ctor()



    I created the EventLog Source manually as suggested in this article

    [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;329291[/url]

    still no luck.

    Any suggestions to resolve this issue?

    Thanks In Advance.

    Karthik Srinivasan


    Karthik Srinivasan Guest

  2. Similar Questions and Discussions

    1. Getting Error: Event Type 'flash.event:event' is unavailable ?????
      Hi, I am not using Cairngorm or anything, but trying to get an app built first without it then look into it. I am getting this error however...
    2. Error creating a new Data Source for Oracle connection
      I'm trying to create a new data source connection to our Oracle 10gR2 server using ColdFusion Administrator 6.1 Standard on a Windows 2003 server....
    3. Creating Data Source
      We have installed ColdFusion MX 7 on a new Windows 2003 server. When I try to create a data source in the admin I get the following error message...
    4. Event Log Source creation security hang up.
      I want to have my trace statements log to the event viewer and have the following test code in Page_Load: If Not Page.IsPostBack Then Try ...
    5. creating deb package of xfree86 4.3 from source?
      Hello all, I am setting up sarge with video unsupported by xfree86 4.2. I know I can use the install script, but I wondered if I should turn the...
  3. #2

    Default Re: Error Creating Event Source

    This sounds like a permissions issue with the account your application is
    using. You might want to check the registry permission on the new log source
    keys and make sure the user/group has read permissions on the keys.

    If you are using impersonation on your site, make sure the users also have
    access to those keys.

    Hope this helps.

    Jon


    "Karthik Srinivasan" <karthiks_75@hotmail.com> wrote in message
    news:%23WauQxfbFHA.3488@tk2msftngp13.phx.gbl...
    > 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.OpenSubKey(String name, Boolean writable)
    > at System.Diagnostics.EventLog.CreateEventSource(Stri ng source, String
    > logName, String machineName, Boolean useMutex)
    > at System.Diagnostics.EventLog.WriteEntry(String message,
    > EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
    > at System.Diagnostics.EventLog.WriteEntry(String message,
    > EventLogEntryType type, Int32 eventID, Int16 category)
    > at System.Diagnostics.EventLog.WriteEntry(String message,
    > EventLogEntryType type, Int32 eventID)
    > at System.Diagnostics.EventLog.WriteEntry(String message,
    > EventLogEntryType type)
    > at VZ.DC.ServicesFactories.DCFactory..ctor()
    >
    >
    >
    > I created the EventLog Source manually as suggested in this article
    >
    > [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;329291[/url]
    >
    > still no luck.
    >
    > Any suggestions to resolve this issue?
    >
    > Thanks In Advance.
    >
    > Karthik Srinivasan
    >
    >

    CodeMeister Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139