12 Replies Latest reply on Jul 16, 2009 11:42 AM by ch@nce

    TFTP Server Service Fails to Start - System.NullReferenceException

      I just upgraded to the Engineer's Toolset version 10.0, and now my TFTP Server service will not start.

      I have tried:

      • Running the TFTP Server application 'as administrator'.
      • Starting the service through the Services MMC.
      • Repairing the SolarWinds Engineer's Edition installation through Windows Add/Remove Programs.
      • Disabling UAC (User Account Control)

      None of these have helpped.  I am running Windows Vista (32-Bit) with Service Pack 1.  I had the 9.2 version of SolarWinds installed on my system previously, and the TFTP Server worked just fine.  I recieve the following error message in my Application Event Log:

      Log Name:      Application
      Source:        TFTP Service
      Date:          3/13/2009 8:59:11 AM
      Event ID:      0
      Task Category: None
      Level:         Error
      Keywords:      Classic
      User:          N/A
      Description:
      Service cannot be started. System.NullReferenceException: Object reference not set to an instance of an object.
         at TFTPServer.Service.ConnectionPool.Dispose()
         at TFTPServer.Service.TFTPServer.Stop()
         at TFTPServer.Service.TFTPService.OnStop()
         at System.ServiceProcess.ServiceBase.DeferredStop()
         at System.ServiceProcess.ServiceBase.Stop()
         at TFTPServer.Service.TFTPService.OnStart(String[] args)
         at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)

      Any help is appreciated!  I use this tool on a daily basis!

      Thank You!

        • Re: TFTP Server Service Fails to Start - System.NullReferenceException

          cmlunsford - Here is what you need to do:

          Navigate to your installation folder; usually <program files>\solarwinds\Engineer's Tooset.

          Then run this command line:

          installutil /u "solarwinds tftp server.exe"

          Reboot

          Nav to same folder and run:

          installutil "solarwinds tftp server.exe"

           

          Should work fine after that.

           

          HTH,

          Greg

            • Re: TFTP Server Service Fails to Start - System.NullReferenceException

              I tried this and still no go. Running Vista Business (32-bit) with all the latest patches. This used to work for me no problem. The appliaction event log error is identical to what was previously posted.

                • Re: TFTP Server Service Fails to Start - System.NullReferenceException

                  awsl - can you please post the output of "netstat -a -b -n"?

                  *Edit Notice: command change (removed -p udp)

                  Thanks,

                  Greg

                    • Re: TFTP Server Service Fails to Start - System.NullReferenceException

                      H:\>netstat -a -b -n

                      Active Connections

                        Proto  Local Address          Foreign Address        State
                        TCP    0.0.0.0:80             0.0.0.0:0              LISTENING

                       Can not obtain ownership information

                      x: Windows Sockets initialization failed: 5
                        TCP    0.0.0.0:135            0.0.0.0:0              LISTENING
                        RpcSs
                       [svchost.exe]
                        TCP    0.0.0.0:445            0.0.0.0:0              LISTENING

                       Can not obtain ownership information

                      x: Windows Sockets initialization failed: 5
                        TCP    0.0.0.0:515            0.0.0.0:0              LISTENING
                        LPDSVC
                       [svchost.exe]
                        TCP    0.0.0.0:990            0.0.0.0:0              LISTENING
                        WcesComm
                       [svchost.exe]
                        TCP    0.0.0.0:3389           0.0.0.0:0              LISTENING
                        Dnscache
                       [svchost.exe]
                        TCP    0.0.0.0:5357           0.0.0.0:0              LISTENING

                       Can not obtain ownership information

                      x: Windows Sockets initialization failed: 5
                        TCP    0.0.0.0:16992          0.0.0.0:0              LISTENING
                       [LMS.exe]
                        TCP    0.0.0.0:16993          0.0.0.0:0              LISTENING
                       [LMS.exe]
                        TCP    0.0.0.0:49152          0.0.0.0:0              LISTENING
                       [wininit.exe]
                        TCP    0.0.0.0:49153          0.0.0.0:0              LISTENING
                        Eventlog
                       [svchost.exe]
                        TCP    0.0.0.0:49154          0.0.0.0:0              LISTENING
                        Schedule
                       [svchost.exe]
                        TCP    0.0.0.0:49155          0.0.0.0:0              LISTENING
                       [lsass.exe]
                        TCP    0.0.0.0:59064          0.0.0.0:0              LISTENING
                        PolicyAgent
                       [svchost.exe]
                        TCP    0.0.0.0:59068          0.0.0.0:0              LISTENING
                       [services.exe]
                        TCP    127.0.0.1:5354         0.0.0.0:0              LISTENING
                       [mDNSResponder.exe]
                        TCP    127.0.0.1:5679         0.0.0.0:0              LISTENING
                        WcesComm
                       [svchost.exe]
                        TCP    127.0.0.1:7438         0.0.0.0:0              LISTENING
                        WcesComm
                       [svchost.exe]
                        TCP    127.0.0.1:27015        0.0.0.0:0              LISTENING
                       [AppleMobileDeviceService.exe]
                        TCP    127.0.0.1:27015        127.0.0.1:59126        ESTABLISHED
                       [AppleMobileDeviceService.exe]
                        TCP    127.0.0.1:59120        0.0.0.0:0              LISTENING
                       [ccApp.exe]
                        TCP    127.0.0.1:59126        127.0.0.1:27015        ESTABLISHED
                       [iTunesHelper.exe]
                        TCP    127.0.0.1:62514        0.0.0.0:0              LISTENING
                       [cvpnd.exe]
                        TCP    127.0.0.1:62522        0.0.0.0:0              LISTENING
                       [vpnagent.exe]
                        TCP    172.19.1.124:139       0.0.0.0:0              LISTENING

                       Can not obtain ownership information

                      x: Windows Sockets initialization failed: 5
                        TCP    172.19.1.124:59223     172.19.6.1:49612       ESTABLISHED
                       [OUTLOOK.EXE]
                        TCP    172.19.1.124:59359     172.19.2.17:445        ESTABLISHED

                       Can not obtain ownership information

                      x: Windows Sockets initialization failed: 5
                        TCP    172.19.1.124:59409     10.249.18.8:8014       ESTABLISHED
                       [Smc.exe]
                        TCP    172.19.1.124:59413     172.19.6.32:3389       ESTABLISHED
                       [mstsc.exe]
                        TCP    172.19.1.124:59414     10.249.24.24:38217     ESTABLISHED
                       [OUTLOOK.EXE]
                        TCP    172.19.1.124:59432     172.19.6.12:135        TIME_WAIT
                        TCP    172.19.1.124:59433     172.19.6.12:1025       TIME_WAIT
                        TCP    172.19.1.124:59434     10.249.24.24:38217     ESTABLISHED
                       [OUTLOOK.EXE]
                        TCP    [::]:80                [::]:0                 LISTENING

                       Can not obtain ownership information

                      x: Windows Sockets initialization failed: 5
                        TCP    [::]:135               [::]:0                 LISTENING
                        RpcSs
                       [svchost.exe]
                        TCP    [::]:445               [::]:0                 LISTENING

                       Can not obtain ownership information

                      x: Windows Sockets initialization failed: 5
                        TCP    [::]:515               [::]:0                 LISTENING
                        LPDSVC
                       [svchost.exe]
                        TCP    [::]:990               [::]:0                 LISTENING
                        WcesComm
                       [svchost.exe]
                        TCP    [::]:3389              [::]:0                 LISTENING
                        Dnscache
                       [svchost.exe]
                        TCP    [::]:5357              [::]:0                 LISTENING

                       Can not obtain ownership information

                      x: Windows Sockets initialization failed: 5
                        TCP    [::]:49152             [::]:0                 LISTENING
                       [wininit.exe]
                        TCP    [::]:49153             [::]:0                 LISTENING
                        Eventlog
                       [svchost.exe]
                        TCP    [::]:49154             [::]:0                 LISTENING
                        Schedule
                       [svchost.exe]
                        TCP    [::]:49155             [::]:0                 LISTENING
                       [lsass.exe]
                        TCP    [::]:59064             [::]:0                 LISTENING
                        PolicyAgent
                       [svchost.exe]
                        TCP    [::]:59068             [::]:0                 LISTENING
                       [services.exe]
                        TCP    [::1]:5679             [::]:0                 LISTENING
                        WcesComm
                       [svchost.exe]
                        TCP    [::1]:59121            [::]:0                 LISTENING
                       [ccApp.exe]
                        UDP    0.0.0.0:123            *:*
                        W32Time
                       [svchost.exe]
                        UDP    0.0.0.0:500            *:*
                        IKEEXT
                       [svchost.exe]
                        UDP    0.0.0.0:1434           *:*
                       [sqlbrowser.exe]
                        UDP    0.0.0.0:3702           *:*
                        FDResPub
                       [svchost.exe]
                        UDP    0.0.0.0:3702           *:*
                        FDResPub
                       [svchost.exe]
                        UDP    0.0.0.0:4500           *:*
                        IKEEXT
                       [svchost.exe]
                        UDP    0.0.0.0:5355           *:*
                        Dnscache
                       [svchost.exe]
                        UDP    0.0.0.0:6004           *:*
                       [OUTLOOK.EXE]
                        UDP    0.0.0.0:50054          *:*
                       [mDNSResponder.exe]
                        UDP    0.0.0.0:56340          *:*
                       [mDNSResponder.exe]
                        UDP    0.0.0.0:65236          *:*
                        FDResPub
                       [svchost.exe]
                        UDP    127.0.0.1:1900         *:*
                        SSDPSRV
                       [svchost.exe]
                        UDP    127.0.0.1:54101        *:*
                       [iexplore.exe]
                        UDP    127.0.0.1:56178        *:*
                       [iexplore.exe]
                        UDP    127.0.0.1:62514        *:*
                       [cvpnd.exe]
                        UDP    127.0.0.1:62596        *:*
                       [taskeng.exe]
                        UDP    127.0.0.1:63876        *:*
                        SSDPSRV
                       [svchost.exe]
                        UDP    127.0.0.1:63877        *:*
                        NlaSvc
                       [svchost.exe]
                        UDP    127.0.0.1:64319        *:*
                        LanmanWorkstation
                       [svchost.exe]
                        UDP    127.0.0.1:64974        *:*
                       [Rtvscan.exe]
                        UDP    127.0.0.1:64975        *:*
                        gpsvc
                       [svchost.exe]
                        UDP    127.0.0.1:64982        *:*
                       [iexplore.exe]
                        UDP    127.0.0.1:65232        *:*
                       [lsass.exe]
                        UDP    127.0.0.1:65235        *:*
                       [Smc.exe]
                        UDP    172.19.1.124:137       *:*

                       Can not obtain ownership information

                      x: Windows Sockets initialization failed: 5
                        UDP    172.19.1.124:138       *:*

                       Can not obtain ownership information

                      x: Windows Sockets initialization failed: 5
                        UDP    172.19.1.124:1900      *:*
                        SSDPSRV
                       [svchost.exe]
                        UDP    172.19.1.124:5353      *:*
                       [mDNSResponder.exe]
                        UDP    172.19.1.124:63875     *:*
                        SSDPSRV
                       [svchost.exe]
                        UDP    [::]:123               *:*
                        W32Time
                       [svchost.exe]
                        UDP    [::]:500               *:*
                        IKEEXT
                       [svchost.exe]
                        UDP    [::]:1434              *:*
                       [sqlbrowser.exe]
                        UDP    [::]:3702              *:*
                        FDResPub
                       [svchost.exe]
                        UDP    [::]:3702              *:*
                        FDResPub
                       [svchost.exe]
                        UDP    [::]:5355              *:*
                        Dnscache
                       [svchost.exe]
                        UDP    [::]:56341             *:*
                       [mDNSResponder.exe]
                        UDP    [::]:65237             *:*
                        FDResPub
                       [svchost.exe]
                        UDP    [::1]:1900             *:*
                        SSDPSRV
                       [svchost.exe]
                        UDP    [::1]:63874            *:*
                        SSDPSRV
                       [svchost.exe]
                        UDP    [fe80::ccbf:a150:b94d:346%8]:1900  *:*
                        SSDPSRV
                       [svchost.exe]
                        UDP    [fe80::ccbf:a150:b94d:346%8]:63872  *:*
                        SSDPSRV
                       [svchost.exe]
                        UDP    [fe80::cd53:28fe:eaa4:ed68%12]:1900  *:*
                        SSDPSRV
                       [svchost.exe]
                        UDP    [fe80::cd53:28fe:eaa4:ed68%12]:63873  *:*
                        SSDPSRV
                       [svchost.exe]

                      H:\>

                        • Re: TFTP Server Service Fails to Start - System.NullReferenceException

                          awsl - Since I don't see the port in use (8099 - which is used for IPC), my guess is that you bound the TFTP server to an address in settings, but that address is no longer present on the machine?  [just a guess, since I haven't seen your *actual* stack/error messages]

                          To remedy this:

                          • Find a file named TFTPSettings.xml located in the SolarWinds Toolset / Free Tool folder (usually %Program Files%\Solarwinds\<product name>)
                            • It might be marked hidden + read only
                          • Open the file and look for a node named "UsedNIC".  Remove this node; the service will default to all addresses on the box.
                            • Be careful editing the XML. Load the file in IE to make sure it is well formed after your edit.
                          • Close and save the file.
                          • Start the service.

                          Post back here and let us know how it goes...

                          HTH,

                          Greg

                            • Re: TFTP Server Service Fails to Start - System.NullReferenceException

                              Greg;

                              Thanks for all the help. You were on the right track for sure. I couldn't find the settings file that you specified but I did find TFTPService.log which showed that UsedNIC was an IP address from a previous system boot (when I was at another site). That IP was no longer valid. In the Configure ... screen of TFTPServer, however, I couldn't select a valid IP address because the section was grayed out (since there was only one NIC on the system). Even though the IP address was showing correctly in the status section of the TFTPServer window, it appeared the program was confused. The solution was to enable the wireless adapter which then gave the program a choice of IP addresses to bind to and ungrayed the choices in the configuration screen. I then manually selected the correct IP and it started no problem.

                              Anyway, problem solved. This never occurred under Windows XP Pro. I suspect this has happened since I switched to Vista Business.

                              Cheers, Alan

                              • Re: TFTP Server Service Fails to Start - System.NullReferenceException

                                Thanks for the info greg. I am running XP Pro, and have been having this problem for the last couple of days. Deleting the "UsedNIC" node worked perfectly, thanks again.

                      • Re: TFTP Server Service Fails to Start - System.NullReferenceException

                        I have the same issue with TFTP Server version 9.2.  any fixes to this?

                        • Re: TFTP Server Service Fails to Start - System.NullReferenceException

                          I am having a similar issue on Server 2003. The App log error is listed below:

                          Event Type: Error
                          Event Source: TFTF Service
                          Event Category: None
                          Event ID: 0
                          Date:  5/31/2009
                          Time:  3:41:31 PM
                          User:  N/A
                          Computer: NS1
                          Description:
                          Service cannot be started. System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted
                             at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
                             at System.Net.Sockets.Socket.Bind(EndPoint localEP)
                             at System.Net.Sockets.TcpListener.Start(Int32 backlog)
                             at System.Net.Sockets.TcpListener.Start()
                             at System.Runtime.Remoting.Channels.ExclusiveTcpListener.Start(Boolean exclusiveAddressUse)
                             at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.StartListening(Object data)
                             at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.SetupChannel()
                             at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor(Int32 port)
                             at TFTPServer.Service.TFTPServer..ctor()
                             at TFTPServer.Service.TFTPServer.get_Current()
                             at TFTPServer.Service.TFTPService.OnStop()
                             at System.ServiceProcess.ServiceBase.DeferredStop()
                             at System.ServiceProcess.ServiceBase.Stop()
                             at TFTPServer.Service.TFTPService.OnStart(Str...

                          Any help you can give is greatly appreciated

                           

                          Curt