By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,780 Members | 1,520 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,780 IT Pros & Developers. It's quick & easy.

get exception to log

P: n/a
is asp.net have a logging component to log all exception to logs file?

Thanks in advanced.
Apr 5 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
ASP.NET does not have a logging component you are requesting, but Microsoft's
pattern & practices team have developed many application blocks (collectively
known as Enterprise Library). The block downloads include source code in
VB.NET and C#. This blocks can be extended to publish exception in SQL Server
or send emails etc. in case of Exception block usage is as simple as:

try
{
//code that can fail
}
catch (Exception ex)
{
ExceptionManager.Publish(ex);
}

You can control the settings for Exception block through Web.config file.
Download the block and start experimenting with it.

http://www.microsoft.com/downloads/d...B-8F22CA173E02

Apr 5 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.