publishing in event viewer

S

saurabh

Hi i dont know is this the right place to post or not. If it is pls
reply else tell me the correct location.
In the event viewer (eventvwr.msc) of my PC, there are 4 items
a)application b)security c) system d) Internet Explorer.
In my asp.net application i am publishing all errors in "application"
item. Is there a way to create my own item there say "myapplicatoin"
and publish all the errors in that item.
I am using Microsoft Application blocks for exception management.

-------------------------
In my web.config file i have added following lines:

<configSection>
<section name="exceptionManagement"
type="Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManagerSectionHandler,

Microsoft.ApplicationBlocks.ExceptionManagement" />
</configSections>
<exceptionManagement mode="on" >
<publisher assembly ="ExceptionManagement"
type="ExceptionManagement.DefaultPublisher" logname="myapplication
AppLog" applicationname="myapplication" />
</exceptionManagement>
-----------------------------
in my CS file i hv written following line.:
catch(Exception ex)
{
ExceptionManager.Publish(ex);
Response.Redirect("http://www.google.com");
}
-----------------------------------------
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top