I'm trying to create a custom publisher and I want to store the data in a
sql table and I can't find any examples any where on how to use a database
instead of (event log, text file, xml file or WMI). If someone could direct
me in the right direction. For example I am storing the connection string in
the publisher and I don't know how to retrieve the information from the
app.config file.
Also I tried running the quickstart that comes with the download of the
ExceptionManagement Application Block and it keeps on getting errors trying
to create the custom publisher. Now I haven't changed one piece of code in
the quickstart so I'm getting a little skeptical about this specific block.
I'm getting the error in app.config file with the following line.
<configSections>
<section name="exceptionManagement"
type="Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManagerSectio
nHandler,Microsoft.ApplicationBlocks.ExceptionManagement" />
</configSections>
And the error message is.
{System.Configuration.ConfigurationException}
[System.Configuration.ConfigurationException]:
{System.Configuration.ConfigurationException}
HelpLink: Nothing
InnerException: Nothing
Message: "Could not create
Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManagerSectionHandl
er,Microsoft.ApplicationBlocks.ExceptionManagement"
Source: "System"
StackTrace: " at System.Configuration.ConfigurationRecord.GetFactory(String
configKey)
at System.Configuration.ConfigurationRecord.Evaluate(String configKey)
at System.Configuration.ConfigurationRecord.ResolveConfig(String configKey)
at System.Configuration.ConfigurationRecord.GetConfig(String configKey)
at
System.Configuration.DefaultConfigurationSystem.System.Configuration.IConfig
urationSystem.GetConfig(String configKey)
at System.Configuration.ConfigurationSettings.GetConfig(String sectionName)
at
Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(Exc
eption exception, NameValueCollection additionalInfo)"
TargetSite: {System.Reflection.RuntimeMethodInfo}
Thanks