469,623 Members | 1,505 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,623 developers. It's quick & easy.

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 1213

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by M. v.d. Bogaard | last post: by
6 posts views Thread by Páll Ólafsson | last post: by
7 posts views Thread by Job Lot | last post: by
5 posts views Thread by gh | last post: by
2 posts views Thread by Raghu R | last post: by
5 posts views Thread by Kevin Jackson | last post: by
40 posts views Thread by Kevin Yu | last post: by
23 posts views Thread by VB Programmer | last post: by
6 posts views Thread by Vadivel Kumar | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.