Exception Management Biulding Block Problems

  • Thread starter Thread starter Guest
  • Start date Start date
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>
 
Make sure the ASP.NET process identity has permission to write to the folder
containing your text file.
The double-entry in the event log is probably from the DefaultPublisher
logging an entry due to the
ExceptionXMLPublisher not having access to the folder.
You get entrys because:

1) One for the original exception
2) One for the exception coming from the ExceptionXMLPublisher not having
file or folder permissions.
 
Thanks Jorge,

I just granted ASPNET read/write access to my c: but unfortunately it did
not work...
 
Back
Top