Common error using the Exception Management Application Block

I make extensive use of the Exception Management Application block from Microsoft PAG. A common error I usually get when starting up a new project is that I haven't configured the eventlog on the Windows 2003 Server to allow writing to the eventlog for all authenticated users. The error message is:

"Cannot open log for source {0}. You may not have write access.".

The solution is to locate the CustomSD key (HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/EventLog/Application) in the registry on the server and add the following string to the existing
value:

(A;;0x0002;;;AU)

From this newsgroup post.

1 Comment

  • I'm getting the same error - but I'm using XP Pro SP2 and IIS5.1 and there is no CustomSD key.... should I create one or is this a WS2003 key only?



    Also, since you say you make entensive use of the Exception block - can you give me a list what I need to do to write to a text or XML file instead of the event log... have looked at the docs but they just leave me more confused!



Comments have been disabled for this content.