473,574 Members | 2,457 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

EnterpriseLibra ry 2.0 Exception and logging block

Please help me in resolving this issue.
I am using EnterpriseLibra ry 2.0 Exception and logging block for
logging exceptions to event log. It works fine for sometime. After some
time it stops logging to event log. To make it active again I need to
open the web.config and save without making any changes. It starts to
work again.

Here is the configuration I am using.

<exceptionHandl ing>
<exceptionPolic ies>
<add name="My Policy">
<exceptionTypes >
<add name="System Exception" type="System.Ex ception, mscorlib"
postHandlingAct ion="None">
<exceptionHandl ers>
<add logCategory="Ex ceptionBlockCat egory" eventId="100"
severity="Error " title="App Admin" priority="0"
formatterType=" Microsoft.Pract ices.Enterprise Library.Excepti onHandling.Text ExceptionFormat ter,
Microsoft.Pract ices.Enterprise Library.Excepti onHandling" name="Logging
Handler"
type="Microsoft .Practices.Ente rpriseLibrary.E xceptionHandlin g.Logging.Loggi ngExceptionHand ler,
Microsoft.Pract ices.Enterprise Library.Excepti onHandling.Logg ing"></add>
</exceptionHandle rs>
</add>
</exceptionTypes>
</add>
</exceptionPolici es>
</exceptionHandli ng>
<loggingConfigu ration defaultCategory ="ExceptionBloc kCategory"
tracingEnabled= "true">
<categorySource s>
<add name="Exception BlockCategory" switchValue="Al l">
<listeners>
<add name="Exception BlockEventListe ner"/>
</listeners>
</add>
<add switchValue="Al l" name="Trace">
<listeners>
<add name="FlatFile TraceListener"/>
</listeners>
</add>
</categorySources >
<specialSources >
<errors name="errors" switchValue="Al l">
<listeners>
<add name="Exception BlockErrorListe ner"/>
<add name="FlatFile TraceListener"/>
</listeners>
</errors>
</specialSources>
<listeners>
<add name="Exception BlockEventListe ner"
type="Microsoft .Practices.Ente rpriseLibrary.L ogging.TraceLis teners.Formatte dEventLogTraceL istener,
Microsoft.Pract ices.Enterprise Library.Logging "
listenerDataTyp e="Microsoft.Pr actices.Enterpr iseLibrary.Logg ing.Configurati on.FormattedEve ntLogTraceListe nerData,
Microsoft.Pract ices.Enterprise Library.Logging " source="Priya"
formatter="Exce ptionBlockForma tter"/>
<add name="Exception BlockErrorListe ner"
type="Microsoft .Practices.Ente rpriseLibrary.L ogging.TraceLis teners.Formatte dEventLogTraceL istener,
Microsoft.Pract ices.Enterprise Library.Logging "
listenerDataTyp e="Microsoft.Pr actices.Enterpr iseLibrary.Logg ing.Configurati on.FormattedEve ntLogTraceListe nerData,
Microsoft.Pract ices.Enterprise Library.Logging " source="Applica tion"
formatter="Exce ptionBlockForma tter"/>
<add name="FlatFile TraceListener" fileName="trace .log"
header="----------------------------------------"
footer="----------------------------------------" formatter="Trac e
Format"
listenerDataTyp e="Microsoft.Pr actices.Enterpr iseLibrary.Logg ing.Configurati on.FlatFileTrac eListenerData,
Microsoft.Pract ices.Enterprise Library.Logging , Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= null" traceOutputOpti ons="None"
type="Microsoft .Practices.Ente rpriseLibrary.L ogging.TraceLis teners.FlatFile TraceListener,
Microsoft.Pract ices.Enterprise Library.Logging , Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= null" />
</listeners>
<formatters>
<add name="Exception BlockFormatter"
type="Microsoft .Practices.Ente rpriseLibrary.L ogging.Formatte rs.TextFormatte r,
Microsoft.Pract ices.Enterprise Library.Logging " template="Times tamp:
{timestamp}&#xA ; Message: {message}&#xA; Category:
{category}&#xA; Priority: {priority}&#xA; EventId:
{eventid}&#xA; Severity:
{severity}&#xA; Title:{title}&# xA; Machine:
{machine}&#xA; Application Domain:
{appDomain}&#xA ; Process Id: {processId}&#xA ; Process
Name: {processName}&# xA; Win32 Thread Id:
{win32ThreadId} &#xA; Thread Name:
{threadName}&#x A; Extended Properties: {dictionary({ke y} -
{value}&#xA; )}"/>
<add template="Times tamp: {timestamp}&#xA ; [Title: {title}]
&#xA;Message : {message}&#xA;"
type="Microsoft .Practices.Ente rpriseLibrary.L ogging.Formatte rs.TextFormatte r,
Microsoft.Pract ices.Enterprise Library.Logging , Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= null" name="Trace Format"/>
</formatters>
</loggingConfigur ation>
Please help.

Nov 7 '06 #1
0 2094

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
9950
by: Kevin Jackson | last post by:
Let's say we log exceptions to the windows application event log using the Exception Management Application Block. Is there a pattern that can be used so the exception is logged only once and not everytime up through the call chain? Is there anything a caller can key off of to check to see if it should also log the exception?
2
6085
by: js | last post by:
I got this error when I moved my application to a new Windows 2003 server. I installed and recompiled the 'Microsoft.Practices.EnterpriseLibrary - June 2005" then added these assemblies to the development machine's Assembly Cache. The assemblies version appears to be 1.1.0.0. I changed the project reference to the newly compiled...
3
8332
by: Ben | last post by:
Hi, I wrote a C# application that is using the Data Access Application Block Enterprise Library, Jan 2006. When i'm running the application on my local machine everything works fine. The problem occur when i'm trying to run the application from a remote computer using shortcut, i get the following error: System.TypeInitializationException:...
2
2632
by: A TO Consultant | last post by:
Hi All, We are using Microsoft.Practices.EnterpriseLibrary.Logging version 1.1.0.0 successfully with .NET code. There is a problem when we try to log from non-.NET code through interop. We get the following error message: /// Error Type: /// Microsoft.Practices.EnterpriseLibrary.Configuration (0x80131902) /// Invalid section name. The...
0
1877
by: job | last post by:
Mohamed Sharaf's has produced a Microsoft.Practices.EnterpriseLibrary production server installer: https://blogs.msdn.com/mohamed_sharafs_blog/archive/2005/09/18/470854.aspx Running the installer produces the message log below for every dll. I'm not sure if there is a problem! and how to solve the problem? Installing assembly...
1
1453
by: Jarsinio | last post by:
I have some doubts about how managed exception in a VB.net aplication. In my aplicattion I have 3 clases: One clase is the UI ( Windows Forms). This class call a second clase who perform an action ( for example add a item in the database). The last class is the one who conect to the DB ( ms access) How I should manage an exception ?...
17
2738
by: Cramer | last post by:
I plan to implement an exception logging feature in an ASP.NET Web application that writes encountered exceptions to disk. The exception data will be stored as XML. I am planning on having each exception written to its own XML file. I plan to NOT append exceptions to a single XML file because I don't want for the exception logging component...
0
2182
by: srizzler | last post by:
Hi All: I am trying to implement Exception Handling using Enterprise Library 3.1's Exception Handling Application Block as well as Logging Blocks. I have a windows application developed in VB.Net (Visual Studio 2005) which have three tiers: User Interface Business Logic Data Layer
7
8547
by: Ralf Jansen | last post by:
For logging purposes i want to determine if the current executing code is running in an ~exceptionhandling context~. I need no details about the exception just if an exception has been thrown and hasn't been handled yet. Following code should make clear what i mean and where i need that info. try { try {
0
7815
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8079
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8258
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6481
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5635
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3756
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3770
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2254
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1359
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.