ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Error: Object reference not set to an instance of an object for Connection string<p>Do you have an Connection string with name as <strong>conString </strong>in web config?<br /> Also check you have properly sets the value for data source and Data Base with user integrity values.</p>https://www.aspforums.net:443/Threads/512327/Error-Object-reference-not-set-to-an-instance-of-an-object-for-Connection-string/https://www.aspforums.net:443/Threads/512327/Error-Object-reference-not-set-to-an-instance-of-an-object-for-Connection-string/Thu, 15 Mar 2018 04:29:37 GMTError: Object reference not set to an instance of an object for Connection string<blockquote><cite>vtc127482 says:</cite> <pre>string str = ConfigurationManager.ConnectionStrings["conString"].ConnectionString</pre> </blockquote> <p>&nbsp;Add the Connection string in Web.Config file.</p> <h1 class="header"><a title="Read or Write Connection Strings in Web.Config file using ASP.Net using C# and VB.Net'a" href="https://www.aspsnippets.com/Articles/Read-or-Write-Connection-Strings-in-WebConfig-file-using-ASPNet-using-C-and-VBNet.aspx">Read or Write Connection Strings in Web.Config file using ASP.Net using C# and VB.Net</a></h1>https://www.aspforums.net:443/Threads/512327/Error-Object-reference-not-set-to-an-instance-of-an-object-for-Connection-string/https://www.aspforums.net:443/Threads/512327/Error-Object-reference-not-set-to-an-instance-of-an-object-for-Connection-string/Thu, 15 Mar 2018 07:00:55 GMT