G
Guest
Hallo,
I have been implementing the execption management biulding block into my
VB.NET Windows App.
I downloaded the biulding block from:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/emab-rm.asp
I have been able to implement the default publisher (the event log) but I am
not able to write exceptions to txt and xml files don't work, instead I get
double entries in the event log.
Any ideas?
Nigel...
Here is my app.config file...
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section
name="exceptionManagement"type="Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManagerSectionHandler,Microsoft.ApplicationBlocks.ExceptionManagement" />
</configSections>
<exceptionManagement mode="on">
<publisher assembly="ExceptionManagementQuickStartSamples"
type="ExceptionManagementQuickStartSamples.ExceptionXMLPublisher" exclude="*"
include="+Microsoft.ApplicationBlocks.ExceptionManagement.BaseApplicationException,
Microsoft.ApplicationBlocks.ExceptionManagement" exceptionFormat="xml"
fileName="c:\Test.xml"/>
</exceptionManagement>
</configuration>
I have been implementing the execption management biulding block into my
VB.NET Windows App.
I downloaded the biulding block from:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/emab-rm.asp
I have been able to implement the default publisher (the event log) but I am
not able to write exceptions to txt and xml files don't work, instead I get
double entries in the event log.
Any ideas?
Nigel...
Here is my app.config file...
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section
name="exceptionManagement"type="Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManagerSectionHandler,Microsoft.ApplicationBlocks.ExceptionManagement" />
</configSections>
<exceptionManagement mode="on">
<publisher assembly="ExceptionManagementQuickStartSamples"
type="ExceptionManagementQuickStartSamples.ExceptionXMLPublisher" exclude="*"
include="+Microsoft.ApplicationBlocks.ExceptionManagement.BaseApplicationException,
Microsoft.ApplicationBlocks.ExceptionManagement" exceptionFormat="xml"
fileName="c:\Test.xml"/>
</exceptionManagement>
</configuration>