MNManj N13y agoPosted Aug 20, 2013, 9:13 AMu try this SqlConnection MyConnection = new SqlConnection(ConfigurationManager.AppSettings["ConnectionString"].ToString());and in webconfg
Nayeem Mansoori13y agoPosted Aug 20, 2013, 8:44 AMHi, Please check your web.config file weather the value config is exist or not string Connectionstring = ConfigurationManager.AppSettings["ConnectionString"].ToString();
Sanjeeb Lenka13y agoPosted Aug 20, 2013, 8:12 AMcheck your web.confg that you declare the connection string or not.ex: providerName="System.Data.SqlClient" />
JSJoxin Stanly13y agoPosted Aug 20, 2013, 8:09 AMCould you please paste the error here?from the screenshot, it shows 0 errors
IHIftikar Hussain13y agoPosted Aug 20, 2013, 8:09 AMHi, Please check your web.config file weather the value config is exist or not connectionString="SQLEXPRESS;Initial Catalog=Dummy;Persist Security Info=True;User ID=sa;Password=password" providerName="System.Data.SqlClient" /> Regards,Iftikar
Safeer SafeerPosted Aug 20, 2013, 11:55 PM
Manj NPosted Aug 20, 2013, 9:13 AM
SqlConnection MyConnection = new SqlConnection(ConfigurationManager.AppSettings["ConnectionString"].ToString());
and in webconfg
Nayeem MansooriPosted Aug 20, 2013, 8:44 AM
Please check your web.config file weather the value config is exist or not
string Connectionstring = ConfigurationManager.AppSettings["ConnectionString"].ToString();
Sanjeeb LenkaPosted Aug 20, 2013, 8:12 AM
ex:
Joxin StanlyPosted Aug 20, 2013, 8:09 AM
from the screenshot, it shows 0 errors
Iftikar HussainPosted Aug 20, 2013, 8:09 AM
Please check your web.config file weather the value config is exist or not
Regards,
Iftikar