I have a simple Window in C# with some elements in it. When i try to run it i get a "System.NullReferenceException in System.Core.dll". In debugging the Exception is raised at the end of the MainWindow-Constructor (where the brackets are)
public MainWindow()
{
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("de-DE");
InitializeComponent();
user = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
handler = new DataHandlerPlants();
tbTransponder.Focus();
loadgrid(); //gets grid-Items from DB
loadComboboxes(); //gets combobox-Items from DB
} //Here is where the exception is raised
What could be causing this?