473,322 Members | 1,480 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

ExceptionManagement Application Block

I'm trying to extend the ExceptionManager Application Block and build a
custom publisher that writes my exceptions to the database. That's easy
part. The difficulty I am having is in configuring my web application to use
the custom publishers.

Things to note. I have a reference to
Microsoft.ApplicationBlocks.ExceptionManager in my web application
The Microsoft.ApplicationBlocks.ExceptionManager is in my GAC, so there is
no dll for it in my webapp\bin\debug or release

I added this section at the top of my web.config file. At this time, I
haven't even included my custom database publisher, I just want to make sure
this is configured correctly.

<configSections>
<section name="exceptionManagement"
type="Microsoft.ApplicationBlocks.ExceptionManagem ent.ExceptionManagerSectio
nHandler,Microsoft.ApplicationBlocks.ExceptionMana gement" />
</configSections>
<exceptionManagement>
<publisher mode="on"
assembly="Microsoft.ApplicationBlocks.ExceptionMan agement"
type="Microsoft.ApplicationBlocks.ExceptionManagem ent.DefaultPublisher" />
</exceptionManagement>

In my code, I have a web page which is throwing an exception, before it
throws it, I am calling the ExceptionManager to publish the exception..

ExceptionManager.Publish(ex);

According to the default behavior of the ExceptionManager, the exception is
being writting into my event log properly.

However, I am getting ANOTHER exception, thrown by the ExceptionManager
itself. I've pasted this exception below. Notice that it's not finding the
file
file:///c:/inetpub/wwwroot/lrwintranet/bin/Microsoft.ApplicationBlocks.ExceptionManagement.DL L.
because it's not there, it's in the Global Assembly Cache!!

How can I configure this to know that my Dlls for the ExceptionManager are
in the GAC?
Event Type: Error
Event Source: ExceptionManagerInternalException
Event Category: None
Event ID: 0
Date: 5/27/2004
Time: 11:22:48 AM
User: N/A
Computer: GDURZI-XP
Description:
1) Exception Information
*********************************************
Exception Type: System.Configuration.ConfigurationException
Message: Exception creating section handler.
(c:\inetpub\wwwroot\lrwintranet\web.config line 4)
BareMessage: Exception creating section handler.
Filename: c:\inetpub\wwwroot\lrwintranet\web.config
Line: 4
TargetSite: System.Configuration.IConfigurationSectionHandler
GetFactory(System.String)
HelpLink: NULL
Source: System.Web

StackTrace Information
*********************************************
at System.Web.Configuration.HttpConfigurationRecord.G etFactory(String
configKey)
at System.Web.Configuration.HttpConfigurationRecord.E valuate(String
configKey, SectionRecord section)
at System.Web.Configuration.HttpConfigurationRecord.G etConfig(String
configKey, Boolean cacheResult)
at System.Web.Configuration.HttpConfigurationRecord.G etConfig(String
configKey, Boolean cacheResult)
at System.Web.Configuration.HttpConfigurationRecord.G etConfig(String
configKey, Boolean cacheResult)
at System.Web.HttpContext.GetConfig(String name)
at
System.Web.Configuration.HttpConfigurationSystemBa se.System.Configuration.IC
onfigurationSystem.GetConfig(String configKey)
at System.Configuration.ConfigurationSettings.GetConf ig(String
sectionName)
at
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.Publish(Exc
eption exception, NameValueCollection additionalInfo)

2) Exception Information
*********************************************
Exception Type: System.IO.FileNotFoundException
Message: File or assembly name
Microsoft.ApplicationBlocks.ExceptionManagement, or one of its dependencies,
was not found.
FileName: Microsoft.ApplicationBlocks.ExceptionManagement
FusionLog: === Pre-bind state information ===
LOG: DisplayName = Microsoft.ApplicationBlocks.ExceptionManagement
(Partial)
LOG: Appbase = file:///c:/inetpub/wwwroot/lrwintranet
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Post-policy reference: Microsoft.ApplicationBlocks.ExceptionManagement
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/lrwintranet/2701740a/e67690c7/Microsoft.ApplicationBlocks.ExceptionMan
agement.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/lrwintranet/2701740a/e67690c7/Microsoft.ApplicationBlocks.ExceptionMan
agement/Microsoft.ApplicationBlocks.ExceptionManagement.DL L.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/lrwintranet/bin/Microsoft.ApplicationBlocks.ExceptionManagement.DL L.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/lrwintranet/bin/Microsoft.ApplicationBlocks.ExceptionManagement/Microsoft.ApplicationBlocks.ExceptionManagement.DL L.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/lrwintranet/2701740a/e67690c7/Microsoft.ApplicationBlocks.ExceptionMan
agement.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/lrwintranet/2701740a/e67690c7/Microsoft.ApplicationBlocks.ExceptionMan
agement/Microsoft.ApplicationBlocks.ExceptionManagement.EX E.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/lrwintranet/bin/Microsoft.ApplicationBlocks.ExceptionManagement.EX E.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/lrwintranet/bin/Microsoft.ApplicationBlocks.ExceptionManagement/Microsoft.ApplicationBlocks.ExceptionManagement.EX E.

TargetSite: System.Type GetType(System.String, Boolean)
HelpLink: NULL
Source: mscorlib

StackTrace Information
*********************************************
at System.Type.GetType(String typeName, Boolean throwOnError)
at System.Web.Configuration.HttpConfigurationRecord.G etFactory(String
configKey)

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Nov 18 '05 #1
0 2559

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

Similar topics

0
by: Sumit Pokhariyal | last post by:
Hi, I am trying to deploy the Exception Management Application Block Assemblies as Shared Assemblies using GAC. I have deployed these assemblies (Exception Management assembly and its Interface...
7
by: Job Lot | last post by:
How can I terminate console application in Try…Catch…Finally…End Try block so that code in Finally gets executed. If I use End statement Finally does not get executed. Following is my code...
0
by: Raisa Nudelman via .NET 247 | last post by:
(Type your message here) We are having "File or assembly nameMicrosoft.ApplicationBlocks.ExceptionManagement, or one of itsdependencies, was not found" problem on our test server. Ourversion of...
1
by: picard | last post by:
I have seen in various posts that there are tricks to increasing the largest continuous memory block available to an application on a windows machine. I want to prove this is possible using a...
0
by: Dan | last post by:
I have a general question regarding the ExceptionManagement block vs Tracing. Is it possible to use both of these in one application as is that what I should be doing. That is to say, should my...
0
by: Ollie | last post by:
Long shot but here goes..... I am developing a vb.net application using the MS application block pattern, available @ ...
1
by: Oney | last post by:
I use Microsoft Exception management block to publish exception to event log. but some error occured. Error is blow, how can I solve this problem ??? Configuration Error Description: An error...
2
by: Shawn Anderson | last post by:
Has anyone had issues getting Microsoft.ApplicationBlocks.ExceptionManagement to work after installing XP SP2? The problem I am running into is the EventLog.OpenWrite() call fails no matter what....
2
by: drew.ferraro | last post by:
Hi, I am trying to build a .DLL file that uses "'Microsoft.ApplicationBlocks.ExceptionManagement.Interfaces'". I am trying to build this .DLL as fully signed. However, when I try to build, I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.