all groups > visual studio .net enterprise tools > november 2004 >
You're in the

visual studio .net enterprise tools

group:

EIF not logging to event log


EIF not logging to event log Bruce Parker
11/3/2004 6:33:05 AM
visual studio .net enterprise tools:
I have a Windows 2003 Enterprise Server system that I am running a .NET web
application on. I am using the Enterprise Instrumentation Framework for
logging errors to the event log and the trace log. When I send an error to
EIF, it should be logged in the event log and the trace log. Only the trace
log is getting the error. This is working correctly on all other systems I
have installed this on. The installutil application has been ran on this
system and the exact same EnterpriseInstrumentation.Config file is being
used. If I write to the event log using EventLog class using the same event
source it works.

RE: EIF not logging to event log mikehayt_ NO[at]SPAM online.microsoft.com
11/3/2004 11:38:48 PM
Im not sure.

You can try flipping over the internalExceptionHandler to "report" for the
event sources in the EI.config file and seeing in the eventlog if there's a
better error. (by default only a perf counter is incremented if an error is
encountered)

For example
<eventSource name="Application" type="softwareElement"
internalExceptionHandler="report" description="Application level event
source" />


--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
|
| I have a Windows 2003 Enterprise Server system that I am running a .NET
web
| application on. I am using the Enterprise Instrumentation Framework for
| logging errors to the event log and the trace log. When I send an error
to
| EIF, it should be logged in the event log and the trace log. Only the
trace
| log is getting the error. This is working correctly on all other systems
I
| have installed this on. The installutil application has been ran on this
| system and the exact same EnterpriseInstrumentation.Config file is being
| used. If I write to the event log using EventLog class using the same
event
| source it works.
|
| Any suggestions what is going on?
|
RE: EIF not logging to event log Bruce Parker
11/4/2004 5:14:04 AM
I changed the internalExceptionHandler to "report" and no errors were
reported. Is there any source code available for EIF so I can attempt to
debug through the problem?

[quoted text, click to view]
RE: EIF not logging to event log mikehayt_ NO[at]SPAM online.microsoft.com
11/17/2004 5:41:55 PM
Sorry for the long delay in getting back to you on this. Its been very busy
at work.

There's no source code available - but if you can send a repro, I can debug
it for you.
If you run perfmon and look at the EventSource and EventSink counters are
any of the error counters being raised?
If not it indicates that EIF isnt encountering an error.

If the EventSink LogEventSink event counter is increasing - it means that
the event sink thinks the event is successfully being raised (I assume
you're using the LogEventSink that comes with EIF).

Sorry again for not replying sooner

Mike

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
|
| I changed the internalExceptionHandler to "report" and no errors were
| reported. Is there any source code available for EIF so I can attempt to
| debug through the problem?
|
[quoted text, click to view]
|
| > Im not sure.
| >
| > You can try flipping over the internalExceptionHandler to "report" for
the
| > event sources in the EI.config file and seeing in the eventlog if
there's a
| > better error. (by default only a perf counter is incremented if an
error is
| > encountered)
| >
| > For example
| > <eventSource name="Application" type="softwareElement"
| > internalExceptionHandler="report" description="Application level event
| > source" />
| >
| >
| > --
| >
| > This posting is provided "AS IS" with no warranties, and confers no
rights.
| > Use of included script samples are subject to the terms specified at
| > http://www.microsoft.com/info/cpyright.htm
| > --------------------
| > |
| > | I have a Windows 2003 Enterprise Server system that I am running a
.NET
| > web
| > | application on. I am using the Enterprise Instrumentation Framework
for
| > | logging errors to the event log and the trace log. When I send an
error
| > to
| > | EIF, it should be logged in the event log and the trace log. Only
the
| > trace
| > | log is getting the error. This is working correctly on all other
systems
| > I
| > | have installed this on. The installutil application has been ran on
this
| > | system and the exact same EnterpriseInstrumentation.Config file is
being
| > | used. If I write to the event log using EventLog class using the
same
| > event
| > | source it works.
| > |
| > | Any suggestions what is going on?
| > |
| >
| >
|
AddThis Social Bookmark Button