473,654 Members | 3,107 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ExceptionManage ment Application Block

I'm trying to extend the ExceptionManage r 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.Appli cationBlocks.Ex ceptionManager in my web application
The Microsoft.Appli cationBlocks.Ex ceptionManager is in my GAC, so there is
no dll for it in my webapp\bin\debu g 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="exception Management"
type="Microsoft .ApplicationBlo cks.ExceptionMa nagement.Except ionManagerSecti o
nHandler,Micros oft.Application Blocks.Exceptio nManagement" />
</configSections>
<exceptionManag ement>
<publisher mode="on"
assembly="Micro soft.Applicatio nBlocks.Excepti onManagement"
type="Microsoft .ApplicationBlo cks.ExceptionMa nagement.Defaul tPublisher" />
</exceptionManage ment>

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

ExceptionManage r.Publish(ex);

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

However, I am getting ANOTHER exception, thrown by the ExceptionManage r
itself. I've pasted this exception below. Notice that it's not finding the
file
file:///c:/inetpub/wwwroot/lrwintranet/bin/Microsoft.Appli cationBlocks.Ex ceptionManageme nt.DLL.
because it's not there, it's in the Global Assembly Cache!!

How can I configure this to know that my Dlls for the ExceptionManage r are
in the GAC?
Event Type: Error
Event Source: ExceptionManage rInternalExcept ion
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.Configur ation.Configura tionException
Message: Exception creating section handler.
(c:\inetpub\www root\lrwintrane t\web.config line 4)
BareMessage: Exception creating section handler.
Filename: c:\inetpub\wwwr oot\lrwintranet \web.config
Line: 4
TargetSite: System.Configur ation.IConfigur ationSectionHan dler
GetFactory(Syst em.String)
HelpLink: NULL
Source: System.Web

StackTrace Information
*************** *************** ***************
at System.Web.Conf iguration.HttpC onfigurationRec ord.GetFactory( String
configKey)
at System.Web.Conf iguration.HttpC onfigurationRec ord.Evaluate(St ring
configKey, SectionRecord section)
at System.Web.Conf iguration.HttpC onfigurationRec ord.GetConfig(S tring
configKey, Boolean cacheResult)
at System.Web.Conf iguration.HttpC onfigurationRec ord.GetConfig(S tring
configKey, Boolean cacheResult)
at System.Web.Conf iguration.HttpC onfigurationRec ord.GetConfig(S tring
configKey, Boolean cacheResult)
at System.Web.Http Context.GetConf ig(String name)
at
System.Web.Conf iguration.HttpC onfigurationSys temBase.System. Configuration.I C
onfigurationSys tem.GetConfig(S tring configKey)
at System.Configur ation.Configura tionSettings.Ge tConfig(String
sectionName)
at
Microsoft.Appli cationBlocks.Ex ceptionManageme nt.ExceptionMan ager.Publish(Ex c
eption exception, NameValueCollec tion additionalInfo)

2) Exception Information
*************** *************** ***************
Exception Type: System.IO.FileN otFoundExceptio n
Message: File or assembly name
Microsoft.Appli cationBlocks.Ex ceptionManageme nt, or one of its dependencies,
was not found.
FileName: Microsoft.Appli cationBlocks.Ex ceptionManageme nt
FusionLog: === Pre-bind state information ===
LOG: DisplayName = Microsoft.Appli cationBlocks.Ex ceptionManageme nt
(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.Appli cationBlocks.Ex ceptionManageme nt
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/lrwintranet/2701740a/e67690c7/Microsoft.Appli cationBlocks.Ex ceptionMan
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.Appli cationBlocks.Ex ceptionMan
agement/Microsoft.Appli cationBlocks.Ex ceptionManageme nt.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/lrwintranet/bin/Microsoft.Appli cationBlocks.Ex ceptionManageme nt.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/lrwintranet/bin/Microsoft.Appli cationBlocks.Ex ceptionManageme nt/Microsoft.Appli cationBlocks.Ex ceptionManageme nt.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/lrwintranet/2701740a/e67690c7/Microsoft.Appli cationBlocks.Ex ceptionMan
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.Appli cationBlocks.Ex ceptionMan
agement/Microsoft.Appli cationBlocks.Ex ceptionManageme nt.EXE.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/lrwintranet/bin/Microsoft.Appli cationBlocks.Ex ceptionManageme nt.EXE.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/lrwintranet/bin/Microsoft.Appli cationBlocks.Ex ceptionManageme nt/Microsoft.Appli cationBlocks.Ex ceptionManageme nt.EXE.

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

StackTrace Information
*************** *************** ***************
at System.Type.Get Type(String typeName, Boolean throwOnError)
at System.Web.Conf iguration.HttpC onfigurationRec ord.GetFactory( String
configKey)

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

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

Similar topics

0
1885
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 assembly) into GAC using gacutil.exe /i command and also tried with MMC. Now after adding the references of these assemblies into my application, exception logging works fine when the "Copy Local" property for these references is set to True,...
7
2313
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 written in Console Application. Module Module1 Sub Main() Call Testing()
0
1005
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 this dll on the server is 1.0.0.0. I've seen theconversation you guys having about solution to this problem, butall code was clipped as well as the beginning of this thread, soI missed Roman Kiss's suggested solution. How I can get thismissing info?...
1
2424
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 simple example. Here is my configuration. -I am running vc++ 6.0 on winXP. (Came with book Starting with Visual C++ by Wright) -I have the 3GB switch set at run time
0
947
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 application (which is a windows service) use the ExceptionManagemet block for reporting exceptions and use the Trace statement to report service activity for troubleshooting etc? I am comfortable with using both but I am trying to isolate what the...
0
1173
by: Ollie | last post by:
Long shot but here goes..... I am developing a vb.net application using the MS application block pattern, available @ http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/uipab-ch03.asp And I have developed some views that derive of Microsoft.ApplicationBlocks.UIProcess.WindowsFormView BUT I am unable to get any key press events, I want to stop the user pressing the Alt+F4 key to
1
4371
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 occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
2
1033
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. Even if I have impersonation enabled. Shawn Anderson
2
4051
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 get the following error: "Unable to emit assembly: Referenced assembly 'Microsoft.ApplicationBlocks.ExceptionManagement.Interfaces' does not have a strong name"
0
8290
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8815
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8707
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8593
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6161
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4149
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1593
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.