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
|