TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rohatash Kumar
Tech Writer
23.6k
34.9m
Problem in Connection String in VB.NET
Dec 28 2012 12:24 AM
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
Answers (
6
)
Session Adding On login Page
semding sms for birthday wish and wedding day