Click here to Skip to main content
15,921,169 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I am creating Connection String , by using ConfigurationManager property,

string conStr = ConfigurationManager.ConnectionStrings["MyconnectionString"].ConnectionString;

and have decrared it in Web.config in connectionString tag,but i am getting an error,
"an unhandled exception of type 'system.stackoverflowexception' occurred in mscorlib.dll asp.net"
Can any one please help me out? Thank You.
Posted

1 solution

Such Exception generally occurs when you use infinite loop.
Check if you r having infinite loop.
 
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