TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
sudhakar amalraj
NA
6
17.1k
Stackoverflow Exception was unhandled
Sep 9 2014 2:11 AM
class BaseData
{
public string DbConnection = ConfigurationManager.ConnectionStrings["OLTPPOINTER_Connectionstring"].ConnectionString;
public string DbConnection_Report = ConfigurationManager.ConnectionStrings["OLTPPOINTER_Connectionstring"].ConnectionString;
protected SqlConnection OpenConnection()
{
SqlConnection conn = new SqlConnection(DbConnection);
try
{
if (conn.State != ConnectionState.Open)
{
conn.Open();
}
return conn;
}
catch { throw; }
}
I use recursive call,it works fine in sometime.
But in Sometime it throws an Exception in
SqlConnection conn = new SqlConnection(DbConnection);
or
adpt.Fill(ds, "DataSet");
Reply
Answers (
0
)
Why are use ToString method ?
How to use WIALib to scan ?