I trying to find out why a VB.NET application has stopped working and gives the following error when opening:
************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at System.Object.GetType() at OneFrm1.Form1.sub_something(Object array1, Object O1, Object O2) at OneFrm1.Form1.add_square_op1_to_array(square_area_options& array1, String v) at OneFrm1.Form1.sub_something(Object array1, Object O1, Object O2) at OneFrm1.Form1.load_date_panel_format_array() at OneFrm1.Form1.Form1_Load(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(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)
The application works fine if I right click and run as 'another user' but gives the above error if running as the logged-in user. I have tried a new user profile and it still gives the same error. The same issue with security software removed.
The other user has the same rights.