Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / October 2007

Tip: Looking for answers? Try searching our database.

Can't connect to SQL database with VS .NET - object reference error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RichGK - 09 Oct 2007 09:41 GMT
When using "Choose Data Source" on a GridView object I receive the
error "Object reference not set to an instance of an object".

I can connect and use the database ok when using my own data access
layer within the same program (I'm writing).

Here are the steps I perform.

1. choose a new data source (SQL)
2. Enter the serve name
3. Use Windows Authentication
4. Select the database name.
5. Test connection = OK.
6. Click OK.

I receive the error.

Thanks.
Rich.
veronicataing@gmail.com - 09 Oct 2007 12:32 GMT
hi

I'm just a beginner ,

Can anyone help with a dotnet architecture nderstanding
Peter Bromberg [C# MVP] - 09 Oct 2007 13:27 GMT
Veronica,
The first thing to learn is that when you have a new question in a
newsgroup, you need to start a new thread with your question, not post it as
a response to someone else's question.

You can find extensive documentaion on the .NET Framework, .NET languages
and much more at msdn.microsoft.com
-- Peter
Recursion: see Recursion
site:  http://www.eggheadcafe.com
unBlog:  http://petesbloggerama.blogspot.com
BlogMetaFinder:    http://www.blogmetafinder.com

> hi
>
> I'm just a beginner ,
>
> Can anyone help with a dotnet architecture nderstanding
Ignacio Machin ( .NET/ C# MVP ) - 09 Oct 2007 18:11 GMT
Hi,

> hi
>
> I'm just a beginner ,
>
> Can anyone help with a dotnet architecture nderstanding

Start a new thread (if using outlook express it's named "New Post") with
your question.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.