Hello,
I am trying to resolve a problem with EIF and Logging
blocks. I have installed EIF on a Win 2k Advanced Server.
I have successfully created a .Net v1.1 WinForms
application that uses the EMAB, EIF and Logging block to
publish to a SQL server using the provided "sqlSink" and
the SQL Flexible Log provided with the sample code. The
problem arises when I try and move the exact same code
into a ASP.Net application. I use all of the same
Reference files, EnterpriseInstrumentation.config and the
eventsqltransform.xslt. However, I cannot get the entries
into the SQL server. In fact, the entries are not even
making it into the Application event log for the web
server. Instead, I receive the following Application Event
log entry for each attempt to log to the database:
//////////////event log entry//////////////
Source: Enterprise
Category: None
Event ID: 0
Type: Error
System.Configuration.ConfigurationException: No
transformation file found for the event.
at
Microsoft.ApplicationBlocks.Logging.EventSinks.XsltEventFor
matter.Init(XmlNode config)
at
Microsoft.ApplicationBlocks.Logging.EventSinks.FormatterInf
o.CreateInstance()
at
Microsoft.ApplicationBlocks.Logging.EventSinks.FormatterFac
tory.Create(String name)
at
Microsoft.ApplicationBlocks.Logging.EventSinks.BaseSink.For
mat(Object eventToFormat)
at
Microsoft.ApplicationBlocks.Logging.EventSinks.SqlServerEve
ntSink.Write(Object eventToRaise)
at
Microsoft.EnterpriseInstrumentation.EventSource.RaiseEvent
(Object eventToRaise, RequestContext requestContext)
//////////////end event log entry//////////////
In the references section of my web application I have the
following(plus other standard entries):
Microsoft.ApplicationBlocks.ExceptionManagement
Microsoft.ApplicationBlocks.ExceptionManagement.Interfaces
Microsoft.ApplicationBlocks.Logging.EIFPublisher
Microsoft.ApplicationBlocks.Logging.EventSinks
Microsoft.ApplicationBlocks.Logging.Schema
Microsoft.EnterpriseInstrumentation
Microsoft.EnterpriseInstrumentation.Schema
The code that I am calling:
Dim adminMessageEvent as new AdminMessageEvent
adminMessageEvent.Message = "Test Admin Message"
adminMessageEvent.EventPublishLevel = CINT(LogLevel.Always)
EventSource.Application.Raise(adminMessageEvent)
This code works fine in any WinForms based application
that I make but fails in any ASP.net application that I
put it in.
Any advice is appreciated.
Aaron
Mike Hayton [MS] - 27 Jan 2004 17:58 GMT
Sorry I dont know the answer.
From an eariler post - there is an email address you can ask Logging Block
questions to (since you havent had a answer to this)
--------------------
From: "Scott Densmore" <scottden@microsoft.com>
Subject: Please read for info on Logging Application Block (Extensions to
EIF)
Date: Fri, 7 Nov 2003 10:22:10 -0800
Newsgroups: microsoft.public.vsnet.enterprise.tools
For any feedback to this please send to devfdbck@microsoft.com. We
(patterns & practices [1] )developed these extensions to EIF and would like
to here any feedback or help in anyways we can.
thanks,
scott
-------------------------
I think it would be more helpful if they just monitored this newsgroup. If
you agree feel free to email them and tell them...
Sorry I couldnt be of more help
Mike
--------------------
| Hello,
|
[quoted text clipped - 68 lines]
|
| Aaron

Signature
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
Ricky Dhatt - 28 Jan 2004 09:48 GMT
Hey I ran into the same problem. After alot of poking around, I saw that
this exception was thrown trying to load eventlogtransform.xslt. I found
the file in the \Logging\Xml\Xsl dir and copied it to my run directory and
it worked. I don't know why this is so, I'm sure I missed something in one
of the .config files. But since it's waaay past my bed time, the why can
wait.
--rd
> Hello,
>
[quoted text clipped - 68 lines]
>
> Aaron