Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: Visual Studio 2013 Shell (Isolated) crashes when you access the search feature


View products that this article applies to.

Symptoms

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()

↑ Back to the top


Cause

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.

↑ Back to the top


Resolution

Download information

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.


Prerequisites

To apply this hotfix, you must have an application that is based on the Visual Studio 2013 Isolated Shell installed.

Restart requirement

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.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


Keywords: kbsurveynew, kbfix, kbexpertiseadvanced, atdownload, kb

↑ Back to the top

Article Info
Article ID : 3107629
Revision : 1
Created on : 1/7/2017
Published on : 11/17/2015
Exists online : False
Views : 572