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