Click here to Skip to main content
16,005,734 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["con"].ConnectionString);
This line error in Object reference not set to an instance of an object.. retrieve the error

i am first time leaning in asp .net. So given to me list of website address for tutorial reference of asp.NET
Posted
Updated 26-Dec-15 17:46pm
v2

1 solution

The ConfigurationManager apparently couldn't find a connection string in your web.config file that was named "con".

Come on. This is VERY EASY to figure out if you only learned the basics of how to use the debugger.
 
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