Click here to Skip to main content
14,330,528 members
Rate this:
Please Sign up or sign in to vote.
See more:

while executing i am getting this error like

"An unhandled exception of type 'System.StackOverflowException' occurred in System.Data.dll" in data access layer..
koolprasadd 18-Jan-12 7:22am
This is most generic error, please post code, which line gives you error
Programm3r 18-Jan-12 7:26am
As mentioned in the previous comment, please post some code as well as the stack trace of the exception.
Yugma9 18-Jan-12 7:33am
hi please help me..

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

class dataaccesslayer
public SqlConnection con;
public SqlCommand cmd;
public SqlDataAdapter da;
public DataSet ds = new DataSet();

""""public DataTable dt = new DataTable();""""" -- here m getting that exception

static int i;

public void Connection()
System.Configuration.AppSettingsReader configreader = new System.Configuration.AppSettingsReader();
string Path = (string)configreader.GetValue("Con", typeof(string));
con = new SqlConnection(Path);

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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100