Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / November 2004

Tip: Looking for answers? Try searching our database.

Emab question.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sonny - 02 Nov 2004 18:17 GMT
What is the best way to add a little bit of functionality to the
ExceptionManager.Publish(Exception) method?  I just want to add a database
insert into the method, but I want everything else to do what it normally
does.

Thanks...sonny
Jorge Matos - 02 Nov 2004 21:19 GMT
Sonny,

You have options:

1) You can just modify the Publish() method to perform the database insert.
2) Create a custom publisher to do your database insert and update your
config file.

I'm not sure what the purpose is for your database insert, but if you can
give me more details I can potentially give you better options.

Jorge

> What is the best way to add a little bit of functionality to the
> ExceptionManager.Publish(Exception) method?  I just want to add a database
> insert into the method, but I want everything else to do what it normally
> does.
>
> Thanks...sonny
sonny - 02 Nov 2004 22:37 GMT
Jorge,

Thanks for your response.  I was just trying to follow industry norm on how
to use these app blocks.

I want to log to the event log, but also throw an error into my error table
in my database so I can make queries for errors.

After some investigation, I figured out how to create my own publisher that
is called in addition to the default publisher.  I'm assuming this is how the
app block was intended to be used.  If I'm wrong, please let me know.

Thanks...sonny

> Sonny,
>
[quoted text clipped - 15 lines]
> >
> > Thanks...sonny

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.