Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
6
Reply
Problem in Connection String in VB.NET
Rohatash Kumar
Dec 28 2012 12:24 AM
76.5k
Hi all,
Below is the connection string in my app.config file in Window forms application.
<connectionStrings>
<add name="ConnectionString1" connectionString="Data Source=.;uid=sa;pwd=wintellect;database=test;" providerName="System.Data.sqlclient"/>
</connectionStrings>
I got this error : "Object reference not set to an instance of an object." in vb.net windows application for sql connection string here is the code:
Dim str As String= ConfigurationManager.ConnectionStrings("ConnectionString1").ConnectionString
Reply
Upload Source Code
Select only zip and rar file.
Post
Reset
Answers (
6
)
saving record in database
refactor code