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");
}
-----------------------------------------
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");
}
-----------------------------------------