An application that is based on the Microsoft Visual Studio 2013 Shell (Isolated) crashes when you access the search feature in the Options dialog box on the Tools menu. Additionally, if a debugger is attached to the process, you may receive the following call stack information and exception:
System.InvalidCastException: Specified cast is not valid.
at Microsoft.VisualStudio.Shell.Interop.IVsSearchCallback.ReportComplete(IVsSearchTask pTask, UInt32 dwResultsFound)
at Microsoft.VisualStudio.Shell.VsSearchTask.OnStartSearch()
at Microsoft.VisualStudio.Platform.SearchProviders.ToolsOptions.SearchTask.OnStartSearch()
at Microsoft.VisualStudio.Shell.VsSearchTask.Start()
at Microsoft.VisualStudio.Platform.WindowManagement.WindowSearchHost.<StartSearch>b__a(Object task)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()