CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.microsoft_application_blocks Tags:
Item Type: NewsGroup Date Entered: 11/2/2006 8:34:09 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 117 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
csustek
Asp.Net User
Extending FormattedDatabaseTraceListener Issues11/2/2006 8:34:09 PM

0/0

We use the FormattedDatabaseTraceListener.  We need to take an item from ExtendedProperties and add it as a new parameter to the logging stored procedure which will in turn write the information to the database.

 

My first idea was to extend the existing FormattedDatabaseTraceListener.  But this doesn't work because the methods that execute the stored procedure are private.

 

My next idea was to extend the CustomTraceListener, add identical code from FormattedTraceListener.  This works.

 

The problem comes when I try to configure the new TraceListener in the configuration utility.  The ConfigurationElementType has to be set to "CustomTraceListenerData".  Problem:  the CustomTraceListenerData type lists only the configuration elements associated with the CustomerTraceListener type; I need the elements from the FormattedDatabaseTraceListener type, which includes items such as stored procedure names, etc.  I tried to use the FormattedDatabaseTraceListenerData ConfigurationElementType, but no dice - the configuration editor tells me that the type is not derived from CustomTraceListener.

 

I've read that I can build my own ConfigurationElementTypes - and even my own Application Block - but it seems likely that someone, somewhere has run into the need to add their own properties to the database trace listener.  Any help anyone could offer would be appreciated.

sanmdk
Asp.Net User
Re: Extending FormattedDatabaseTraceListener Issues7/30/2007 6:28:31 AM

0/0

I am facing the same issue with Enterprise library 3.1. Could you please let me know how you resolved this?

 Thanks.
 

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Extending FormattedDatabaseTraceListener Issues - ASP.NET Forums My first idea was to extend the existing FormattedDatabaseTraceListener. But this doesn't work because the methods that execute the stored ...
Extending FormattedDatabaseTraceListener Issues - ng.asp-net-forum ... Extending FormattedDatabaseTraceListener Issues, > ROOT > NEWSGROUP > Asp.Net Forum ...
Greg's Cool [Insert Clever Name] of the Day: 01/01/2006 - 02/01/2006 I think the GMAIL issues some were having should be resolved (use port 587). ..... I used the FormattedDatabaseTraceListener as a reference for creating my ..... This is a cool post and code example on extending the DataGridView to ...
patterns & practices – Enterprise Library - Discussions I spent some time online to browse through some articles on extending FormattedDatabaseTraceListener . I was able to get more insights in the process. ...
patterns & practices – Enterprise Library - Discussions Is there an easier way to extend FormattedDatabaseTraceListener that I'm not seeing? ... On your first Item, Yes you can just add something to the extended ...
Ent-Lib 2.0- Problem Configuring Database Listener for Logging ... FormattedDatabaseTraceListener, Microsoft.Practices. ... Name: {threadName}{ newline}Extended Properties: {dictionary({key} - {value} ...
2.2 Download - dashCommerce Jun 7 2007 at 10:51 AM Fixing issues 10555, 10547, .... FormattedDatabaseTraceListener, Microsoft.Practices. ..... Thread Name: { threadName} Extended Properties: {dictionary({key} - {value} )}" type="Microsoft .Practices. ...
Shatl's home - Windows Live We faced several issues while working with MS Velocity CTP2: ... This release includes pNUnit, an extended NUnit runner for distributed parallel tests. ..... The assembler for the FormattedDatabaseTraceListener now uses the inherited ...
Database Trace Listener in the Enterprise Library doesnt work - ng ... FormattedDatabaseTraceListener, Microsoft.Practices. ... The Logging Application Block When an issue arises with an application that is not replicable in ..... FormattedDatabaseTraceListener). 2. In the default Form class, ...... Add a new class to the project that is extending the Logging Application Block and ...




Search This Site:










body tag runat=server doesn't work on master page

master page error.

dynjamically get contentplaceholderid for a masterpage from another page

master pages and css advice...

sharing themes cross application

onmenuitemclick causing postback all the time

add attributes to body tag (google maps)

masterpage fit screen!

forms authentication and themes

master page issue help?

how to use default masterpage?

masterpage missing some sections when creating a new page

treeview node text formatting

sitemap caching prevents multi-site portal

dynamic globresource request

how to apply staticselectedstyle on top level (horizontal) menu, when lower level was selected

hi, i have a problem with a stylesheet when i place it in the app_themes asp,net folder. can somebody please help me?

how to place footer in master page?

proper way to change themes programmatically?

problem with a second master page

usercontrol loading problem

web.sitemap and url query parameters

modify doctype at runtime in asp.net c#

user control issue

menu control

treeview problem

loading items in a menu instance from an xml file

javascript dynamic menu with master page

setting the menu state in a master page using an unordered list

sitemappath and menu color

  Privacy | Contact Us
All Times Are GMT