Exception Management Biulding Block Problems

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>
 
G

Guest

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.
 
G

Guest

Thanks Jorge,

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top