13 Replies Latest reply on Jul 2, 2018 6:01 AM by cwinning

    Object reference not set to an instance of an object

    Dot Rookie

      Hello,

       

      I’m trying to move my Ivanti console from one server (W2K8R2 STD) to another server (W2K16STD) but I always get the same error : Object reference not set to an instance of an object

       

      Steps I did :

       

      • Attached/detached my DB from SQL2005 to SQL2016 - SP1 – CU5 (13.0.4451.0)
      • Changed the DB location with “Database setup tool” to this new SQL server

       

      on the old server : (UserID with Admin rights on the server)

       

      • Upgrade my Shavlik console from 9.1.xxx to IvantiPatchForServers_9.3.4510
      • Backup Core settings
      • Backup User settings

       

      on the new server : (The same userid)

       

      • Installed IvantiPatchForServers_9.3.4510
      • The installation also installed SQL Express
      • Created a local DB for the new installation of Ivanti Console
      • Copied the Backup files from the old server to the new server
      • Tried to Restore the Core settings but it always fails with the same error


      Object reference not set to an instance of an object.jpg

       

      This is the output of the logfiles located at C:\ProgramData\LANDESK\Shavlik Protect\Logs

      Logs attached.

       

      Logs consolidated for data migration - Nick Evans

        • 1. Re: Object reference not set to an instance of an object
          cwinning CommunityTeam

          Hello,

           

          Thank you for the question, sorry to see you are having issues. I unfortunately don't have enough information in the log snippets.  I need all of the logs from C:\ProgramData\LANDESK\Shavlik Protect\Logs.  Could you attach them to this thread? If not, could you open a case and reference this thread?

           

          Best regards,

          Charles

          • 2. Re: Object reference not set to an instance of an object
            Dot Rookie

            Hi Cwinning,

             

            I attached the files

             

            Best Regards

            • 3. Re: Object reference not set to an instance of an object
              cwinning CommunityTeam

              Hello,

               

              OK, looking at them now, I will post an update as soon as I have one.

               

              Thank you,

              Charles

              • 4. Re: Object reference not set to an instance of an object
                Dot Rookie

                Hello,

                 

                I've tried to install a clean console on another W2K16 server.
                This worked like a charm. I can open the console and see an empty DB.

                 

                On the server where I should move to, the console doesn't open.

                 

                It gives me an unexpected stop error :

                 

                Faulting application name: ST.Protect.exe, version: 9.3.4510.0, time stamp: 0x59cbbb1f
                Faulting module name: KERNELBASE.dll, version: 10.0.14393.1715, time stamp: 0x59b0d106
                Exception code: 0xe0434352
                Fault offset: 0x0000000000033c58
                Faulting process id: 0xd44
                Faulting application start time: 0x01d38492e46d7555
                Faulting application path: D:\Program Files\LANDESK\Shavlik Protect\ST.Protect.exe
                Faulting module path: C:\windows\System32\KERNELBASE.dll
                Report Id: 89e2c949-716f-4021-acc3-224e923b516f
                Faulting package full name:
                Faulting package-relative application ID:

                 

                Is there a document to completely uninstall IvantiPatchForServers_9.3.4510 ? (registry keys, directories, ...)

                So I can retry from the beginning ?

                 

                Kind Regards

                • 5. Re: Object reference not set to an instance of an object
                  Dot Rookie

                  This is the error I get when I try to open Ivanti Patch for Windows

                  • 6. Re: Object reference not set to an instance of an object
                    cwinning CommunityTeam

                    Hello,

                     

                    There are old documents on this community for previous versions, this contains information of 9.3:  Install - Uninstall Failures - How To Clean Up Broken Installs Of Shavlik Protect With The Microsoft Fixit Tool

                     

                    The crash error without the logs isn't going to help pinpoint the cause of the error you are seeing.  I would suggest a simple uninstall, at install either create a new database or over-write your current database. Manually removing registry keys and folders/files are only needed for extreme edge cases.  You may want to consider opening a case on this so a tech can take a look over a WebEx.

                     

                    Thanks,

                    Charles

                    • 7. Re: Object reference not set to an instance of an object
                      cwinning CommunityTeam

                      Hello,

                       

                      Moreover, I see some evidence of .Net corruption. It will take some work to verify this though since we need All tracing enabled, which has to be done though config files since the Protect UI will not start.

                       

                      After enabling All tracing, if you see “Not using credentials” in the log, then .NET is corrupted, because we are trying to set the .NET WebRequest default credentials to null (WebRequest.DefaultWebProxy.Credentials = null;).

                      In this case you should reinstall / repair .NET4.6.2.  (you could jump straight to this)

                      Make sure it is full installation not just client.

                       

                      To enable All logging:

                       

                      1. Navigate to C:\Program Files\LANDESK\Shavlik Protect

                      2. Backup these config files:

                      • ST.Backup.Protect.UI.exe.config
                      • ST.Protect.exe.config

                      3. Open each one and changethe logging level from Information, ActivityTracing to ALL

                       

                      Change from:

                      ST.Backup.Protect.UI.exe.config:

                      <add name="STBackupProtectUISwitch" value="Information, ActivityTracing" />

                       

                      ST.Protect.exe.config

                      <add name="STProtectSwitch" value="Information, ActivityTracing" />

                       

                      Change to :

                      ST.Backup.Protect.UI.exe.config:

                      <add name="STBackupProtectUISwitch" value=" All" />

                       

                      ST.Protect.exe.config

                      <add name="STProtectSwitch" value=" All" />

                       

                      Reproduce the problem, and attach the logs.

                       

                      After enabling All tracing, if you see “Not using credentials” in the log, then .NET is corrupted, because we are trying to set the .NET WebRequest default credentials to null (WebRequest.DefaultWebProxy.Credentials = null;).They should uninstall / fix their .NET4.6.2. Make sure it is full installation not just client.

                       

                      Thanks,

                      Charles

                      • 8. Re: Object reference not set to an instance of an object
                        Dot Rookie

                        Hi,

                         

                        sorry for this late reaction.

                        I've changed the log settings in de config files and this is the log file after the change :

                        As you can see, there must be something wrong with .NET

                         

                         

                        ST.Protect.managed.Userid@domain.log

                        2018-02-07T14:33:25.9841124Z 0001 V ConsoleStateExaminer.cs:266|Console certificate is issued locally and valid.
                        2018-02-07T14:33:26.0778625Z 0005 V ProxyCredentials.cs:89|Not using credentials.
                        2018-02-07T14:33:26.0934879Z 0001 C Launcher.cs:87|System.InvalidOperationException: Crash from UI thread ---> System.InvalidOperationException: Crash from UI thread ---> System.NullReferenceException: Object reference not set to an instance of an object.
                           at ST.Core.Net.ProxyCredentials.InitGlobalProxy(ProxyCredentials proxyCredentials)
                           at ST.BusinessObjects.FileDownload.ProxyConfiguration.<ConfigureAsync>d__1.MoveNext()
                        --- End of stack trace from previous location where exception was thrown ---
                           at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
                           at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
                           at ST.Protect.Forms.ConsoleStateExaminer.<RunChecksThatCauseApplicationExitAsync>d__13.MoveNext()
                        --- End of stack trace from previous location where exception was thrown ---
                           at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
                           at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
                           at ST.Protect.Forms.ConsoleStateExaminer.<IsStateValidAsync>d__0.MoveNext()
                        --- End of stack trace from previous location where exception was thrown ---
                           at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
                           at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
                           at ST.Protect.Forms.Main.Splash.<OnShownAsync>d__6.MoveNext()
                        --- End of stack trace from previous location where exception was thrown ---
                           at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
                           at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
                           at ST.Protect.Forms.Main.Splash.<TaskFormShown>d__9.MoveNext()
                        --- End of stack trace from previous location where exception was thrown ---
                           at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
                           --- End of inner exception stack trace ---
                           at ST.Protect.Launcher.TerminateFromThreadException(Exception exception)
                           at ST.Protect.Launcher.ApplicationThreadException(Object sender, ThreadExceptionEventArgs e)
                           at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
                           at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
                           at System.Windows.Forms.Control.WndProc(Message& m)
                           at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
                           --- End of inner exception stack trace ---
                           at ST.Protect.Launcher.TerminateFromThreadException(Exception exception)
                           at ST.Protect.Launcher.ApplicationThreadException(Object sender, ThreadExceptionEventArgs e)
                           at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
                           at System.Windows.Forms.Control.WndProcException(Exception e)
                           at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
                           at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
                           at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
                           at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
                           at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
                           at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
                           at ST.Protect.Launcher.ExecuteMain()
                           at ST.Protect.Launcher.ExecuteInMutex(Action action, String mutexName)
                           at ST.Protect.Launcher.Main(String[] args)
                        2018-02-07T14:33:26.1091127Z 0001 W Licensing.cs:400|No capability for 17170444
                        2018-02-07T14:33:26.1091127Z 0001 W Licensing.cs:400|No capability for 17170444

                        • 9. Re: Object reference not set to an instance of an object
                          cwinning CommunityTeam

                          Hello,

                           

                             at ST.Core.Net.ProxyCredentials.InitGlobalProxy(ProxyCredentials proxyCredentials)

                             at ST.BusinessObjects.FileDownload.ProxyConfiguration.<ConfigureAsync>d__1.MoveNext()

                           

                          Judging from the snippet, the crash is happening when reading the credentials set for you proxy.  I would suggest unassigning your proxy credentials in Tools > Options > Internet Proxy.  Next navigate to Manage > Credentials and remove and recreate the credentials you had set for your proxy credentials. Do you still see a crash?

                           

                          If that doesn't this, I would highly suggest opening a case with support so we can see the rest of your logs and possibly have you run debug code to track down the root cause. (zip and attach the logs to the web case)

                           

                          Thanks,

                          Charles

                          • 10. Re: Object reference not set to an instance of an object
                            Dot Rookie

                            Hi Charles,

                             

                            thanks for the reply.

                            I'm unable to change the settings you mention in your reply because Ivanti doesn't start up after I try to start it.

                            First it fires this window

                             

                            Following by this. After clicking "Close program" the program disapears.

                             

                             

                            Kind Regards

                            • 11. Re: Object reference not set to an instance of an object
                              cwinning CommunityTeam

                              Hello,

                               

                              Your most likely going to need a script to correct the issue you are seeing.  Please open a web case and reference this thread along with all of you logs (zipped)  We will need to research and devise the best course of action going forward.

                               

                              Support Portal

                               

                              Thanks,

                              Charles

                              • 12. Re: Object reference not set to an instance of an object
                                Dot Rookie

                                Hello Charles,

                                 

                                sorry for this very late reply.

                                2 weeks ago I've desided to install Ivanati on another W2K16 server.

                                Now my ivanti console runs without any problem.

                                 

                                Thanks anyway for your time.

                                 

                                (you can close this ticket)

                                 

                                Kind regards

                                • 13. Re: Object reference not set to an instance of an object
                                  cwinning CommunityTeam

                                  Hello,

                                   

                                  Thank you for letting us know!

                                   

                                  Thanks,

                                  Charles