Problem logging to database

Topics: Logging Application Block
Jan 9, 2009 at 9:19 AM
hello,

In my c# application, I use a database trace listener which writes to a remote sql database. And it works fine.
Problem:
If I lost the connection to my remote database, my program hangs trying to write to the database.
Is there a way I can avoid it. So that I log to a file rather trying to write to database.

Best regards
Alex
Jan 12, 2009 at 8:49 AM
Hi Alex,

Does your application hangs completely? that you would have to "End Process" it in the Task Manager? Does it throws any exception? Here are some post regarding FailOver logging. 

http://www.codeplex.com/entlib/Thread/View.aspx?ThreadId=8892
http://www.codeplex.com/entlib/Thread/View.aspx?ThreadId=7410


Hope this helps.


Valiant Dudan
Global Technology and Solutions
Avanade, Inc.
entlib.support@avanade.com
Jan 15, 2009 at 7:14 AM
Hi Valiant,

Thanks for the reply. The application does not hang completly, but it takes unusually long time and the UI does not respond. This issue is so sensitive because my application is a client server multithreaded one.
I will look into the links provided by you. And will get back to you asap.

Best regards
Amoudan






From: [email removed]
To: [email removed]
Date: Mon, 12 Jan 2009 01:49:42 -0800
Subject: Re: Problem logging to database [entlib:43799]


From: AvanadeSupport
Hi Alex,

Does your application hangs completely? that you would have to "End Process" it in the Task Manager? Does it throws any exception? Here are some post regarding FailOver logging.

http://www.codeplex.com/entlib/Thread/View.aspx?ThreadId=8892
http://www.codeplex.com/entlib/Thread/View.aspx?ThreadId=7410


Hope this helps.


Valiant Dudan
Global Technology and Solutions
Avanade, Inc.
entlib.support@avanade.com
Read the full discussion online.
To add a post to this discussion, reply to this email (entlib@discussions.codeplex.com)
To start a new discussion for this project, email entlib@discussions.codeplex.com
You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on codePlex.com.
Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Get news, entertainment and everything you care about at Live.com. Check it out!