Click here to Skip to main content
14,691,047 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi

while executing i am getting this error like

"An unhandled exception of type 'System.StackOverflowException' occurred in System.Data.dll" in data access layer..
Posted
Comments
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

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()
{
try
{
System.Configuration.AppSettingsReader configreader = new System.Configuration.AppSettingsReader();
string Path = (string)configreader.GetValue("Con", typeof(string));
con = new SqlConnection(Path);
con.Open();
}
   
v2

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