Wrox Programmer Forums
|
BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio
This is the forum to discuss the Wrox book ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solution by Vincent Varallo; ISBN: 9780470396865
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 9th, 2009, 04:48 PM
Authorized User
 
Join Date: Mar 2009
Posts: 27
Thanks: 1
Thanked 0 Times in 0 Posts
Default Enterprise Exception Handling

All,

In Chapter 5 Vince discussions the Exception Handling Block and I really enjoyed it. However, I do have one question I would like to pose to the group. When an exception occurs we can log it and send an email, which is perfect.

However, we configure all our .net applications to use a SMTP relay server (this is done in the machine.config) and we do not go directly to the exchange server. We use several relay servers, one for development/QA and the other for production.

One reason we use it is to prevent a developer from accidently spamming the exchange server. Which has happened several times. Anyway, not sure how to get the Exception Block to use the relay server. I've given it the port and IP address of the relay server, but no email and nothing logged on the relay server.

I can get it to work going directly to the exchange server, but we would be right back to spamming the exchange server. Any help would be great, this way I could use the Enterprise Exception Block.

If not then I could always use the Global.asax and trap, log and send email manually.

Thanks,
-realkewl
 
Old September 10th, 2009, 06:41 PM
Registered User
 
Join Date: Aug 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am not sure of the Relay Server, you have mentioned here.

But, I have failed to achieve the objective of the Ch5, i.e. Application event log having the entry with source of Enterprise Library Logging. Also, I could not email the exception details.

I was wondering if you were successful in achieving this, as the book explains.
 
Old September 11th, 2009, 09:27 AM
Authorized User
 
Join Date: Mar 2009
Posts: 27
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hello,

I was not able to get it to work using the Relay server, but it does work according to the book.

We do not use the exception handling block. We use the global.asax to catch any application level unhandled exceptions, and we just wrote our our logging routine and then send an email. Also, we do the same thing for page level unhandleds. Just put it in the basepage.vb and if any page throws an unhandled error it is caught at the page level. Almost the same code as the global.asax.

Hope this helps.
-realkewl

Last edited by realkewl; September 11th, 2009 at 09:28 AM.. Reason: typo





Similar Threads
Thread Thread Starter Forum Replies Last Post
Exception Handling NewTitle2007 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 6 August 8th, 2007 04:03 AM
exception handling jay schumacher VB.NET 2002/2003 Basics 1 April 14th, 2006 08:40 AM
Exception handling aldwinenriquez General .NET 0 August 17th, 2005 06:13 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.