4 Replies Latest reply on Jun 16, 2014 10:51 AM by julian.harris@rrd.com

    What causes an unhandled exception error?

    Rookie

      One of my customers began getting an unhandled exception error whenever they try to do a scan of machines from a text file in Shavlik Protect Standard. Has anyone ever experienced this issue before? Any help is appreciated. The error message is below.

       

      Shavlik error.bmp

        • 1. Re: What causes an unhandled exception error?
          SupportEmployee

          Hi,

           

          Have you entered any special characters into your text file?

           

          An unexpected error could come from any number of causes. The best way to get a better idea is to look at the logs (or send the logs into support).

           

          C:\ProgramData\LANDesk\Shavlik Protect\Logs

           

          The ST.Protect.managed.user@system.log will probably contain the error detail for an unexpected error such as this.

           

          Thanks

          1 of 1 people found this helpful
          • 2. Re: What causes an unhandled exception error?
            Rookie

            There are no special characters in the txt file.

             

            Here is the log file:

             

            2014-06-16T13:17:43.8774547Z 0001 I Launcher.cs:250|'C:\Program Files\LANDESK\Shavlik Protect\ST.Protect.exe' is starting, version: 9.1.4334.0, full name: ST.Protect, Version=9.1.0.0, Culture=neutral, PublicKeyToken=19306d7375e33918.

            2014-06-16T13:17:44.2362616Z 0001 I Launcher.cs:363|Starting console 'TO_DC / to_dc.cgx.net' on Microsoft Windows NT 6.1.7601 Service Pack 1 (time zone: Pacific Daylight Time, UTC offset: -07:00:00)...

            2014-06-16T13:17:50.4451810Z 0014 I FileIntegrityCheck.cs:23|Not verifying 'C:\Users\a_jhar\AppData\Local\Temp\09ede8b4-d154-498f-a712-75e69359862bst.tmp'.

            2014-06-16T13:23:28.8780892Z 0001 I WorkItemController.cs:352|Started

            2014-06-16T13:23:28.8936895Z 0033 I WorkItemController.cs:368|Download manifest starting

            2014-06-16T13:23:39.1430866Z 0033 I WorkItemController.cs:383|Download manifest ended with status: 'Completed'

            2014-06-16T13:23:39.1586869Z 0033 I WorkItemController.cs:368|Download patch definitions starting

            2014-06-16T13:23:39.5642947Z 0033 I WorkItemController.cs:383|Download patch definitions ended with status: 'Completed'

            2014-06-16T13:23:39.5642947Z 0033 I WorkItemController.cs:368|Patch import starting

            2014-06-16T13:23:39.5798950Z 0034 E WorkItemCatalogDataImport.cs:147|System.ArgumentException: Exception of type 'System.ArgumentException' was thrown.

            Parameter name: key

               at ST.Data.CatalogData.Assessment.RegistryDetails..ctor(String key, Int32 locationId, String name)

               at ST.CustomPatch.Data.CustomPatchFileReader.CreateLocationsAndDetections(AssessmentData assessmentData, IEnumerable`1 customPatchFiles)

               at ST.CustomPatch.Data.CustomPatchFileReader.AddCustomPatchesToCatalogData(AssessmentData assessmentData, PackagingData packagingData, IReadOnlyCollection`1 customPatchFiles)

               at ST.UI.Controllers.CatalogData.CatalogDataModelBuilder.<BuildAsync>d__0.MoveNext()

            --- End of stack trace from previous location where exception was thrown ---

               at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

               at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

               at ST.UI.Controllers.CatalogData.CatalogDataController.<CreateAsync>d__0.MoveNext()

            --- End of stack trace from previous location where exception was thrown ---

               at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

               at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

               at ST.UI.Controllers.CatalogData.CatalogDataController.<FindAssessmentDataModelAsync>d__4.MoveNext()

            --- End of stack trace from previous location where exception was thrown ---

               at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

               at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

               at ST.UI.Controllers.CatalogData.CatalogDataController.<FindAssessmentFileVersionAsync>d__8.MoveNext()

            --- End of stack trace from previous location where exception was thrown ---

               at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

               at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

               at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()

               at ST.UI.Controllers.Tasks.WorkItemCatalogDataImport.<IsUpdateNeededAsync>d__9.MoveNext()

            --- End of stack trace from previous location where exception was thrown ---

               at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

               at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

               at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()

               at ST.UI.Controllers.Tasks.WorkItemCatalogDataImport.<RunAsync>d__0.MoveNext()

            2014-06-16T13:23:39.5798950Z 0034 I WorkItemController.cs:304|Starting...

            2014-06-16T13:23:39.7046974Z 0034 I OperationPresenter.cs:272|ST.UI.Controllers.Scheduling.PatchScan Operation: T/O Printing

            2014-06-16T13:23:39.7826989Z 0034 I WorkItemController.cs:339|...done

            2014-06-16T13:23:39.8138995Z 0001 E ErrorHandlingTaskExtensions.cs:184|System.AggregateException: One or more errors occurred. ---> System.ArgumentException: Exception of type 'System.ArgumentException' was thrown.

            Parameter name: key

               at ST.Data.CatalogData.Assessment.RegistryDetails..ctor(String key, Int32 locationId, String name)

               at ST.CustomPatch.Data.CustomPatchFileReader.CreateLocationsAndDetections(AssessmentData assessmentData, IEnumerable`1 customPatchFiles)

               at ST.CustomPatch.Data.CustomPatchFileReader.AddCustomPatchesToCatalogData(AssessmentData assessmentData, PackagingData packagingData, IReadOnlyCollection`1 customPatchFiles)

               at ST.UI.Controllers.CatalogData.CatalogDataModelBuilder.<BuildAsync>d__0.MoveNext()

            --- End of stack trace from previous location where exception was thrown ---

               at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

               at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

               at ST.UI.Controllers.CatalogData.CatalogDataController.<CreateAsync>d__0.MoveNext()

            --- End of stack trace from previous location where exception was thrown ---

               at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

               at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

               at ST.UI.Controllers.CatalogData.CatalogDataController.<FindAssessmentDataModelAsync>d__4.MoveNext()

            --- End of stack trace from previous location where exception was thrown ---

               at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

               at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

               at ST.UI.Controllers.CatalogData.CatalogDataController.<FindAssessmentFileVersionAsync>d__8.MoveNext()

            --- End of stack trace from previous location where exception was thrown ---

               at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

               at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

               at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()

               at ST.UI.Controllers.Tasks.WorkItemCatalogDataImport.<IsUpdateNeededAsync>d__9.MoveNext()

            --- End of stack trace from previous location where exception was thrown ---

               at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

               at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

               at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()

               at ST.UI.Controllers.Tasks.WorkItemCatalogDataImport.<RunAsync>d__0.MoveNext()

            --- End of stack trace from previous location where exception was thrown ---

               at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

               at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

               at ST.UI.Controllers.Tasks.WorkItemController.<RunInternalAsync>d__0.MoveNext()

               --- End of inner exception stack trace ---

            ---> (Inner Exception #0) System.ArgumentException: Exception of type 'System.ArgumentException' was thrown.

            Parameter name: key

               at ST.Data.CatalogData.Assessment.RegistryDetails..ctor(String key, Int32 locationId, String name)

               at ST.CustomPatch.Data.CustomPatchFileReader.CreateLocationsAndDetections(AssessmentData assessmentData, IEnumerable`1 customPatchFiles)

               at ST.CustomPatch.Data.CustomPatchFileReader.AddCustomPatchesToCatalogData(AssessmentData assessmentData, PackagingData packagingData, IReadOnlyCollection`1 customPatchFiles)

               at ST.UI.Controllers.CatalogData.CatalogDataModelBuilder.<BuildAsync>d__0.MoveNext()

            --- End of stack trace from previous location where exception was thrown ---

               at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

               at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

               at ST.UI.Controllers.CatalogData.CatalogDataController.<CreateAsync>d__0.MoveNext()

            --- End of stack trace from previous location where exception was thrown ---

               at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

               at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

               at ST.UI.Controllers.CatalogData.CatalogDataController.<FindAssessmentDataModelAsync>d__4.MoveNext()

            --- End of stack trace from previous location where exception was thrown ---

               at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

               at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

               at ST.UI.Controllers.CatalogData.CatalogDataController.<FindAssessmentFileVersionAsync>d__8.MoveNext()

            --- End of stack trace from previous location where exception was thrown ---

               at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

               at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

               at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()

               at ST.UI.Controllers.Tasks.WorkItemCatalogDataImport.<IsUpdateNeededAsync>d__9.MoveNext()

            --- End of stack trace from previous location where exception was thrown ---

               at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

               at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

               at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()

               at ST.UI.Controllers.Tasks.WorkItemCatalogDataImport.<RunAsync>d__0.MoveNext()

            --- End of stack trace from previous location where exception was thrown ---

               at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

               at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

               at ST.UI.Controllers.Tasks.WorkItemController.<RunInternalAsync>d__0.MoveNext()<---

             

             

            2014-06-16T13:23:40.0167034Z 0001 C Launcher.cs:73|System.InvalidOperationException: Crash from main UI thread ---> System.InvalidOperationException: Crash from main UI thread ---> System.ArgumentException: Exception of type 'System.ArgumentException' was thrown.

            Parameter name: key

               at ST.Data.CatalogData.Assessment.RegistryDetails..ctor(String key, Int32 locationId, String name)

               at ST.CustomPatch.Data.CustomPatchFileReader.CreateLocationsAndDetections(AssessmentData assessmentData, IEnumerable`1 customPatchFiles)

               at ST.CustomPatch.Data.CustomPatchFileReader.AddCustomPatchesToCatalogData(AssessmentData assessmentData, PackagingData packagingData, IReadOnlyCollection`1 customPatchFiles)

               at ST.UI.Controllers.CatalogData.CatalogDataModelBuilder.<BuildAsync>d__0.MoveNext()

            --- End of stack trace from previous location where exception was thrown ---

               at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

               at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

               at ST.UI.Controllers.CatalogData.CatalogDataController.<CreateAsync>d__0.MoveNext()

            --- End of stack trace from previous location where exception was thrown ---

               at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

               at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

               at ST.UI.Controllers.CatalogData.CatalogDataController.<FindAssessmentDataModelAsync>d__4.MoveNext()

            --- End of stack trace from previous location where exception was thrown ---

               at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

               at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

               at ST.UI.Controllers.CatalogData.CatalogDataController.<FindAssessmentFileVersionAsync>d__8.MoveNext()

            --- End of stack trace from previous location where exception was thrown ---

               at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

               at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

               at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()

               at ST.UI.Controllers.Tasks.WorkItemCatalogDataImport.<IsUpdateNeededAsync>d__9.MoveNext()

            --- End of stack trace from previous location where exception was thrown ---

               at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

               at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

               at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()

               at ST.UI.Controllers.Tasks.WorkItemCatalogDataImport.<RunAsync>d__0.MoveNext()

            --- End of stack trace from previous location where exception was thrown ---

               at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

               at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

               at ST.UI.Controllers.Tasks.WorkItemController.<RunInternalAsync>d__0.MoveNext()

               --- 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.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 ST.Protect.Launcher.ExecuteMain()

               at ST.Protect.Launcher.ExecuteInMutex(Action action, String mutexName)

               at ST.Protect.Launcher.Main(String[] args)

            • 3. Re: What causes an unhandled exception error?
              nick.evans SupportEmployee

              Hi Julian,

              Check and see if you have a file like this: "C:\ProgramData\LANDesk\Shavlik Protect\Console\ST.CustomPatch.config"

               

              If yes, try renaming it from .config to .old. Sometimes this file can become corrupted causing an issue like the one you are seeing here.

              If you are using custom xml files, this will break the connection between protect and the xml once renamed, but it will allow us to identify if it is the cause. If renaming it fixes the issue, you can then go reimport your custom xml again.

              • 4. Re: What causes an unhandled exception error?
                Rookie

                I renamed the config file and the scan was successful. I am going to have my customer test as well. Thank you!