Wrox Programmer Forums
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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 October 26th, 2004, 10:14 AM
Registered User
 
Join Date: Oct 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error Logging

I am looking for a good routine to write an error log from my asp.net application. Any one got anything?

Angela
 
Old October 27th, 2004, 05:32 AM
Authorized User
 
Join Date: Jul 2004
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aravwind Send a message via Yahoo to aravwind
Default

Chk out this link of MSDN

http://support.microsoft.com/default...b;en-us;308132

this will giv u a neat over view
 
Old October 27th, 2004, 05:36 AM
Authorized User
 
Join Date: Jul 2004
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aravwind Send a message via Yahoo to aravwind
Default

U can also try this way......

SqlConnection con=null;
try
{
    con=new SqlConnection();
    con.ConnectionString=TextBox1.Text;
    con.Open();
}
catch(Exception exp)
{
    Label1.Text=exp.Message;
}
finally
{
    if(con.State==ConnectionState.Open)
        con.Close();
}
 
Old October 28th, 2004, 03:28 AM
Friend of Wrox
 
Join Date: Feb 2004
Posts: 177
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Microsoft has an application logger component in the following link, try this

http://msdn.microsoft.com/library/en...ml/logging.asp


It is not how much we do,
but how much love we put in the doing.

-Mother Theresa





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error While logging to FileShare Application DeadZone BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 April 5th, 2007 02:28 PM
SSIS - Built-In Logging / Custom Logging ivobecker23 SQL Server 2005 0 April 21st, 2006 05:41 AM
Problem with Logging in JRMotz BOOK: ASP.NET Website Programming Problem-Design-Solution 2 April 13th, 2006 08:29 PM
Tomcat logging shantawn Apache Tomcat 2 February 25th, 2005 06:04 AM
Logging with Log4j - ERROR pedersen JSP Basics 1 October 1st, 2003 08:42 AM





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