title: VB.NET application not working as logged in user but works as 'other user'
body: <p>I trying to find out why a VB.NET application has stopped working and gives the following error when opening:</p>
  
  <blockquote>
    <p>************** 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&amp; 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)<br>
    at System.Windows.Forms.Control.CreateControl()    at
    System.Windows.Forms.Control.WmShowWindow(Message&amp; m)    at
    System.Windows.Forms.Control.WndProc(Message&amp; m)    at
    System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)<br>
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
    IntPtr wparam, IntPtr lparam)</p>
  </blockquote>
  
  <p>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.</p>
  
  <p>The other user has the same rights.</p>