System.NullReferenceException: Object reference not set to an instance of an object.
at SMS.FrmMain.TreeView2_MouseUp(Object sender, MouseEventArgs e)
at System.Windows.Forms.Control.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.TreeView.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
For reference, if needed, MSDN Object Null Information
Regardless, it appears your db.config not setup right. Please make sure the information in that file is correct.
So open up your YAF ---> db.config with notepad or whatever, and this:
<add name="yafnet" connectionString="Data Source=sql2k805.XXXXXXXXXXXXXXXXXXXXXX;User ID=SQL2008R2_XXXXXXXXX_USER;Password=YOURPASSWORD"
Make sure all that information is correct and is the proper information for your database. If you're using a shared host, go into your host's control panel and get the database information from there.
Upload the db.config and replace the old one and refresh your browser or clear the cache, and things should work properly.
USS Vision YAF
"Money is better than poverty, if only for financial reasons"
So, if you're dealing with value types, NullReferenceException s can not occur. Though you need to keep alert when dealing with reference types!
Only reference types, as the name is suggesting, can hold references or point literally to nothing (or 'null'). Whereas value types always contain a value.
Reference types (these ones must be checked):
Value types (you can simply ignore these ones):
User defined structs