Will someone please respond!!!System.NullReferenceException

I installed and compiled the source  on my server at work and everything works fine if I install the downloadable client msi and change the cfg file to point to my server . If however I compile the client source into a client setup and install it on my client machine I get the following error when I attempt to log into my server TaskVision app:"System.NullReferenceException: Object reference not set to an instance of an object."
I love this app and hope that I will be able to use it at work so any help would be greatly appreciated.

Mike


Answer this question

Will someone please respond!!!System.NullReferenceException

  • John Hennesey

    I'm getting this same error now, it seemed to come out of nowhere.

    I have versions I've been developing running properly in other locations.

    This version should be the original, and it was working fine.

    I think I should be able to set up a new 'original'version, but I'm still curious if anyone has any insight.

    Thanks.

    'DefaultDomain': Loaded 'c:\winnt\microsoft.net\framework\v1.0.3705\mscorlib.dll', No symbols loaded.
    'TaskVision': Loaded 'C:\Temp\TaskVision\bin\1.1.0.0\TaskVision.exe', Symbols loaded.
    'TaskVision.exe': Loaded 'c:\winnt\assembly\gac\system.windows.forms\1.0.3300.0__b77a5c561934e089\system.windows.forms.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'c:\winnt\assembly\gac\system\1.0.3300.0__b77a5c561934e089\system.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'c:\winnt\assembly\gac\system.drawing\1.0.3300.0__b03f5f7f11d50a3a\system.drawing.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'c:\winnt\assembly\gac\microsoft.visualbasic\7.0.3300.0__b03f5f7f11d50a3a\microsoft.visualbasic.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'c:\temp\taskvision\bin\1.1.0.0\xpandercontrol.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'c:\temp\taskvision\bin\1.1.0.0\chartcontrol.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'c:\temp\taskvision\bin\1.1.0.0\progresscontrol.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'c:\temp\taskvision\bin\1.1.0.0\appupdater.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'c:\winnt\assembly\gac\system.xml\1.0.3300.0__b77a5c561934e089\system.xml.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'c:\winnt\assembly\gac\system.data\1.0.3300.0__b77a5c561934e089\system.data.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'c:\winnt\assembly\gac\system.runtime.serialization.formatters.soap\1.0.3300.0__b03f5f7f11d50a3a\system.runtime.serialization.formatters.soap.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'c:\winnt\assembly\gac\accessibility\1.0.3300.0__b03f5f7f11d50a3a\accessibility.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'c:\winnt\assembly\gac\system.web.services\1.0.3300.0__b03f5f7f11d50a3a\system.web.services.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'c:\winnt\assembly\gac\system.web\1.0.3300.0__b03f5f7f11d50a3a\system.web.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'ethvm2vq', No symbols loaded.
    'TaskVision.exe': Loaded 'u865osjh', No symbols loaded.
    The thread 'Progress Bar' (0x1dc) has exited with code 0 (0x0).
    The thread 'Progress Bar' (0x53c) has exited with code 0 (0x0).
    The thread 'Progress Bar' (0x788) has exited with code 0 (0x0).
    An unhandled exception of type 'System.NullReferenceException' occurred in TaskVision.exe

    Additional information: Object reference not set to an instance of an object.

    The program '[1088] TaskVision.exe' has exited with code 0 (0x0).

  • Roger Cheng - MSFT

    I had to put this thing on the back burner for a few days due to network problems and when I returned to it this morning --it worked!!! Holly cow some more of that MS magic. I must have re-booted in the interim or something. Thanks 

    P.S. How much trouble would it be to make this app browser capable as oppossed to using a smart client

  • John.Padilla

    Can someone please tell me what to include in the client build from the source so that the oblect gets initialized before referenced
  • annag

    This problem has also disappeared from my system without my fixing it.

    I hope it has to do with the dev environment and isn't an obscure bug.

  • StevenFowler

    Can you post back the StackTrace from the exception - Thanks!
  • sopi20

    I had the same problem with my csharp build.  I believe that visual studio may have deleted it (I try not to mess too much with initializeComponent method and make a method call in initializeComponent where I do all manual tasks)
  • Marsha4830

    the problem is in the hPanel object.  If you look in the designer controls dropdown, you will notice that hPanel is not one of the controls added visually.  So, it must be a control added programmically.  Do a search on hPanel from the code editor and you will notice that the variable is never instaniate, only declared.  

    I deleted the variable and added the taskhistorypanel to the history xpander and named it hPanel.  All seemed to work from there.

  • Akhraden

    I have the same error too.

    I have installed client and server msi to try out the run time app. They were working. after that I unstalled the client ans server app and installed source msi.

    I then compile TaskVision and ran it. Then I hit System.NullReferenceException after tried to login. 

    The following are the error message:

    An unhandled exception of type 'System.NullReferenceException' occurred in TaskVision.exe

    Additional information: Object reference not set to an instance of an object.

    The following are output stack:

    'DefaultDomain': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols loaded.
    'TaskVision': Loaded 'Z:\VS Projects 20031013\Windows TaskVision\TaskVision\bin\1.1.0.0\TaskVision.exe', Symbols loaded.
    'TaskVision.exe': Loaded 'c:\windows\assembly\gac\system.windows.forms\1.0.5000.0__b77a5c561934e089\system.windows.forms.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'c:\windows\assembly\gac\microsoft.visualbasic\7.0.5000.0__b03f5f7f11d50a3a\microsoft.visualbasic.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'z:\vs projects 20031013\windows taskvision\taskvision\bin\1.1.0.0\xpandercontrol.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'z:\vs projects 20031013\windows taskvision\taskvision\bin\1.1.0.0\chartcontrol.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'z:\vs projects 20031013\windows taskvision\taskvision\bin\1.1.0.0\progresscontrol.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'z:\vs projects 20031013\windows taskvision\taskvision\bin\1.1.0.0\appupdater.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'c:\windows\assembly\gac\system.runtime.serialization.formatters.soap\1.0.5000.0__b03f5f7f11d50a3a\system.runtime.serialization.formatters.soap.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll', No symbols loaded.
    'TaskVision.exe': Loaded 'zpxpdppc', No symbols loaded.
    'TaskVision.exe': Loaded 'um_lhslw', No symbols loaded.
    The thread 'Progress Bar' (0xfa8) has exited with code 0 (0x0).
    The thread 'Progress Bar' (0xfcc) has exited with code 0 (0x0).
    The thread 'Progress Bar' (0xfd4) has exited with code 0 (0x0).
    An unhandled exception of type 'System.NullReferenceException' occurred in TaskVision.exe

    Additional information: Object reference not set to an instance of an object.

    The program '[3368] TaskVision.exe' has exited with code 0 (0x0).

    On top of that, I also notice that the debuger breaks at Ln 1457 of MainForm.vb showing the following code:

            hPanel.TaskIDMember = "TaskID"

    I have tried reboot the machine and run the app again. I faced the same error.

    I hope anyone can help me on this. Thanks.

  • Will someone please respond!!!System.NullReferenceException