Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Enterprise Tools / December 2003

Tip: Looking for answers? Try searching our database.

EIF and FormaterInfo

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Eric - 10 Dec 2003 18:10 GMT
Hi,

We are using Logging and EIF in a Web Application.

Now we would like to put all XSLT to a subdirectory.
But relative paths don't work.
I assume that for a web application the virtual root directory is the
starting point.

The example below doesnt work. He can't find the stylesheet. How I need to
define the path (The full path works, but not very useful) ?

 <formatterInfo name="logSinkXslt"

type="Microsoft.ApplicationBlocks.Logging.EventSinks.XsltEventFormatter,
Microsoft.ApplicationBlocks.Logging.EventSinks, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=62ad81be7ac02d38"
    fullyQualifiedDefaultXsltPath="xslt\eventlogtransform.xslt"/>

Thanks
Eric
Eric - 10 Dec 2003 21:06 GMT
Some information which I have found:

Note: In the case of the XSLT formatter implementation provided with the
logging block, you must specify the fully qualified path of the XSLT file
for the parameter fullyQualifiedDefaultXsltPath, or you must locate the XSLT
file either in the same folder as the application executable file or in the
%windir%\system32\ folder for Web applications.

But when I put the XSLT to System32 directory, it doesn't work neither.

> Hi,
>
[quoted text clipped - 17 lines]
> Thanks
> Eric
Mike Hayton [MS] - 11 Dec 2003 05:39 GMT
So with the EI.config saying:

| > type="Microsoft.ApplicationBlocks.Logging.EventSinks.XsltEventFormatter,
| > Microsoft.ApplicationBlocks.Logging.EventSinks, Version=1.0.0.0,
| > Culture=neutral, PublicKeyToken=62ad81be7ac02d38"
| >      fullyQualifiedDefaultXsltPath="xslt\eventlogtransform.xslt"/>

you could type

dir %windir%\system32\xslt\eventlogtransform.xslt

and you'd get the file, but it still wouldnt work?

I'd ping the logging block people directly on devfdbck@microsoft.com

Cheers

Mike

--------------------
| Some information which I have found:
|
[quoted text clipped - 27 lines]
| > Thanks
| > Eric

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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.