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()
This problem occurs because the Visual Studio Shell (Isolated) cannot find a service that is typically shipped together with the full Visual Studio 2013 package.
To resolve this problem, download the following hotfix file from the Microsoft Download Center:
For more information about how to download Microsoft support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591 How to obtain Microsoft support files from online services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.
To apply this hotfix, you must have an application that is based on the Visual Studio 2013 Isolated Shell installed.
You do not have to restart the computer after you install the hotfix if the affected files are not being used at the time of installation. We recommend that you close all Visual Studio 2013-related components before you install the hotfix.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.