C#C
C#3y ago
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
A tool for sharing your source code with the world!
Was this page helpful?