473,473 Members | 2,316 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problem with Exception Building Block from GAC

Hi,
I am trying to publish some custom Publisher Exceptions using the Exception Management Building Block. When an exception is thrown my application crashes and I get the following error in the eventlog (the default publisher).

1) Exception Information
*********************************************
Exception Type: System.Configuration.ConfigurationException
Message: Could not create Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManagerSectionHandler,Microsoft.Application Blocks.ExceptionManagement
BareMessage: Could not create Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManagerSectionHandler,Microsoft.Application Blocks.ExceptionManagement
Filename: NULL
Line: 0
TargetSite: System.Configuration.IConfigurationSectionHandler GetFactory(System.String)
HelpLink: NULL
Source: System

StackTrace Information
*********************************************
at System.Configuration.ConfigurationRecord.GetFactor y(String configKey)
at System.Configuration.ConfigurationRecord.Evaluate( String configKey)
at System.Configuration.ConfigurationRecord.ResolveCo nfig(String configKey)
at System.Configuration.ConfigurationRecord.GetConfig (String configKey)
at System.Configuration.DefaultConfigurationSystem.Sy stem.Configuration.IConfigurationSystem.GetConfig( String configKey)
at System.Configuration.ConfigurationSettings.GetConf ig(String sectionName)
at Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.Publish(Exception exception, NameValueCollection additionalInfo)

The assemblies are registered in the GAC. The configuration files are like this:

<configuration><configSections><section name="exceptionManagement" type="Microsoft.ApplicationBlocks.ExceptionManagem ent.ExceptionManagerSectionHandler,Microsoft.Appli cationBlocks.ExceptionManagement" /></configSections><exceptionManagement mode="on"><!-- Text logfile --><publisher mode="on" assembly="RSDToolsPL" type="RSD.CommonTools.ToolsPL.TextLogPublisher" filePath="c:\temp\Error Logging\" nestedError="yes" showTrace="yes" /><!-- Error screen --><publisher mode="on" assembly="RSDToolsPL" type="RSD.CommonTools.ToolsPL.ScreenPublisher" /><!-- Default (Event Log) --><publisher mode="on" assembly="Microsoft.ApplicationBlocks.ExceptionMan agement" type="Microsoft.ApplicationBlocks.ExceptionManagem ent.DefaultPublisher" logname="ExceptionMgmtLog" applicationname="CollaborationManager" /></exceptionManagement></configuration>

I know you use the assemblies as private assemblies for the program. If you do this everything works fine, but the thing is that I want them in the GAC.
Does anybody have a clue what the problem might be?

Thanks,
Marcel
Nov 22 '05 #1
0 1333

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

Similar topics

0
by: M. v.d. Bogaard | last post by:
Hi, I am trying to publish some custom Publisher Exceptions using the Exception Management Building Block. When an exception is thrown my application crashes and I get the following error in the...
1
by: Andy | last post by:
Hi All, I'm basically just trying to get started with the Exception Management Application Block and am having some technical difficulties. All I want to do to begin with is create a simple...
6
by: Páll Ólafsson | last post by:
Hi I have a problem with the Microsoft.ApplicationBlocks.ExceptionManagement? I can't get it to work in RELEASE mode? If I run the project in debug mode the block works fine but when I run the...
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...
5
by: gh | last post by:
Hi, Is it true that the CLR sometimes can't throw the run time exception? Cause I have just encountered a problem that my program has some unexpected behaviours. After adding try-catch block to...
2
by: Raghu R | last post by:
From: "R. Raghuraman" <raghuraman@infosys.com> Subject: Problem with XMLValidatingReader? Date: 01 April 2004 11:46 Hi, I have a large xml file to process (~ 70 mb). I am trying to use...
5
by: Kevin Jackson | last post by:
In the following code snippet, will the finally block be executed when the throw is executed in the catch block???? I'm assuming it will. catch (Exception e) { // if...
40
by: Kevin Yu | last post by:
is it a bad programming design to throw exception in the try block then catch it??
23
by: VB Programmer | last post by:
Variable scope doesn't make sense to me when it comes to Try Catch Finally. Example: In order to close/dispose a db connection you have to dim the connection outside of the Try Catch Finally...
6
by: Vadivel Kumar | last post by:
I've a problem in handling a custom exception The following is my custom exception class: public class AppException : public Exception { public AppException (string message, Exception...
0
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,...
0
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,...
0
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
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...

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.