Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends

This time i am making a project in which i require to get time against any user from database and check if system date is same in database and if system time also matches the one notification get raised informing me that i need to call this person at this time.

Friends i have made all d program, only problem is this that after some time say 50 sec my connection from database gets disconnected and it throws me an Unspecified error of connection state closed..

i have all my sources in try to catch this exception but it is not happening.
Can any one help me out in this problem????????
Posted
Comments
theanil 25-Dec-11 15:01pm    
place some sample code to check what the problem is
Sergey Alexandrovich Kryukov 25-Dec-11 15:04pm    
Not enough information, but... please see my answer.
--SA

1 solution

Hard to say what exactly could be wrong, but if you have problem to reproduce and debug this exception, you need to collect more information. You can use logging extensively. I would suggest using the class System.Diagnostics.EventLog to log a lot of detail using the system event log for the sink of data and Event Viewer for looking up.

See also my past solutions:
MsBuild OutPut to the TextBox on the fly in Windows Application[^],
How to create event log under a folder[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900