.NETGURU
EMAB Custom Publisher problem - Utilites.exe
Messages   Related Types
This message was discovered on microsoft.public.dotnet.distributed_apps.

Post a new message to this list...

Ben
Hi,
I have encountered a strange problem recently. In my application I have
derived quite a few exceptions from BaseApplicationException and throw the
exceptions up through the layers by nesting them as i go up the tree. Once I
get to the topmost layer I call the Exception Manager Publish event and need
it to log to the Default log as well as my custom XML and DB publishers.

My custom DB Publisher derives from the IPublisher interface (as required)
and has been working correctly for quite some time.

Suddenly last weekend i came across a weird error message saying that the
Exception Manager had found a System.IO.FileNotFound exception and it was
looking for something called Utilites.exe (that was not a typo, that is the
spelling of the exe name in the error message).

It said something about not being able to load the custom publisher.

I recently installed the framework 1.1 SP1. I dont know if it has anything
to do with this.

I have saved the error message on my workstation at work so i dont have the
exact message here to post , but does anyone recognise this problem?

I traced through the EMAB and it walks the exception tree correctly for a
long time and then suddenly throws this error. It also could be that,
failing to load the custom publisher, it proceeds to publish to the event
log and by this time the size of the string is so huge that it cannot be
posted there. I came across another post on this group that dealt with event
log sizes (link posted below)

Any ideas ?
Cheers
Santosh

Event Log size problem URL :
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=O%23VFOWxREHA.3944%40TK2MSFTNGP11.phx.gbl&rnum=4&prev=/groups%3Fq%3DEMAB%2BCustom%2BPublisher%2BException%26hl%3Den%26lr%3D%26ie%3DUTF-8%26selm%3DO%2523VFOWxREHA.3944%2540TK2MSFTNGP11.phx.gbl%26rnum%3D4

Reply to this message...
 
    
Ben
Heres an update.. The problem has been solved. Basically there were several
contributing factors
(1) The app config file which has the sections for the custom publishers had
the DB Publisher marked as type = XML. This led to an exception being thrown
in the Exception Manager class, but the message that it picks up from the
RESX only says that Custom Publisher failed to execute.

(2) Once this was sorted i came across a problem purely internal to my
custom publisher which was throwing a SqlException. Again, the Exception
Manager threw the same message as above which didnt help to let me know what
the problem was but with a bit of debugging i found this out. I had to
update the Exception Manager class to catch SqlExceptions and throw a
different message (added to the RESX file)

(3) This last point is actually a limitation of the EMAB quick start
samples. The source application does not use the EMAB and simply throws
Exceptions. I had trapped that in the lower most layer of my app and thrown
a exception derived from BaseApplicationException with the source exception
as the inner exception. This went up the tree, but when the XML Publisher
serialises to XML (the XML publisher is a part of the quickstart samples),
it recursively extracts the XML but fails to check for null inner exceptions
and the possibility of any element of the property array being NULL. This
caused a Target Invocation exception.

It appears that there was some problem in writing to the event log also but
i need to investigate some more.

However I still dont know what on earth Utilites.exe is..

Anyway, hope this follow up helps someone.

cheers
santosh

"Ben" <benjy@allfreetec[NOSPAMDOT]com> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
 
System.Data.SqlClient.SqlException




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification