Steps as follows:-
1. Copy dll of exception to the project bin directory .
2. Change config setting as add exceptionManagement section..
<
configuration> <configSections> <section name="exceptionManagement" type="Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManagerSectionHandler,Microsoft.ApplicationBlocks.ExceptionManagement" /> </configSections> <exceptionManagement mode="on"> <publisher mode="on" assembly="Microsoft.ApplicationBlocks.ExceptionManagement" type="Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher" logName="POMD Log" applicationName="POMD" /> <publisher mode="on" assembly="POMD" type="POMD.CustomPublisher" /> </exceptionManagement> 3. Now at last in the page you can use as ..
Imports
Microsoft.ApplicationBlocks.ExceptionManagement try
catch ( obj as exception)
ExceptionManager.Publish(obj)
end try
it will log exception in the event log.
Deppak Jain
dipesh parekh <dipesh_it@yahoo.co.in> wrote:
Hi,Is any one know how to use Enterprise Library Exception Handling Block (Framework 2.0) in Web application?Please let me know all step to config as well as the global.asx code.RegardsDipesh
Contact Me :__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Deepak Jain
Microsoft Certified Solution Developer(.Net)
Microsoft Certified Application Developer(.Net)
Microsoft Certified Professional
Microsoft Certified Application Developer(.Net)
Microsoft Certified Professional
(ASP.Net,VB.net, XML Web Services,SQL Server , Architecture Designing)
Billjunction Payment LTD (ICICI Network Company)
Mo. 09869540525
Billjunction Payment LTD (ICICI Network Company)
Mo. 09869540525
Yahoo! India Answers: Share what you know. Learn something new Click here
Note: This Group is not a Job Searching Group, so please co-operate and dont transfer any kind of job related material across this Group.AnyOne doing so can be banned from the Group
Thanx , Group Co-Ordinators
Thanx , Group Co-Ordinators
You are receiving Individual Emails Change Delivery Settings
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
SPONSORED LINKS
.
__,_._,___
No comments:
Post a Comment