© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
88 replies
SupsXito

✅ C# null exception with SQL

I was trying to deploy my application to another computer to try it, and I got an error where it couldn't located the attached mdf file so i fixed the connection string in visual studio and I started getting "Object reference not set to an instance of an object" in the application and the error :

System.NullReferenceException HResult=0x80004003 Message=Object reference not set to an instance of an object. Source=DoumaClientDatabase StackTrace: at Douma_Client_Database.MainWindow.FillDataGrid()MainWindow.xaml.cs:line 82

my code should be here :
https://paste.mod.gg/uipqjqrtgsij/0
BlazeBin - uipqjqrtgsij
A tool for sharing your source code with the world!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

❔ Null exception
C#CC# / help
3y ago
Null reference exception
C#CC# / help
13mo ago
AspNetCore Null Exception
C#CC# / help
2y ago
Null Reference Exception
C#CC# / help
3y ago