Подтвердить что ты не робот

Как исправить "Исключение хаба внутренней диагностики" в VS 2015 Update 1?

Я только что обновился до версии Visual Studio 2015 Update 1, и я получаю ошибку всякий раз, когда начинаю отладку:

Исключение внутренней инфраструктуры диагностики. Подробнее см. В журнале.

Снимок экрана с сообщением об ошибке

Как исправить это или отключить ошибку?

Я не знаю, какой файл журнала я должен проверить. В ActivityLog.xml последняя запись вчера, так что она не содержит ничего полезного. Затем я знаю, что есть файл журнала MEF (Microsoft.VisualStudio.Default.err), но этот пуст. Как исследовать это?

4b9b3361

Ответ 1

Файл PerformanceDebuggerSwimLanesView.html отсутствует в c:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Platform\DiagnosticsHub\WebViews\. После того, как я скопировал файл из коллеги, ошибка была исправлена;)

Я поставил файл в gist, если вы этого захотите.

Ответ 2

Я вникнул в журналы Visual Studio, чтобы понять, что происходит (C:\Users\YourUser\AppData\Roaming\Microsoft\VisualStudio\14.0\ActivityLog.xml). В моих сообщениях было что-то вроде этого:

  <entry>
    <record>846</record>
    <time>2016/07/22 01:07:20.351</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
    <guid>{2FFE45C4-5C73-493C-B187-F2E955FF875E}</guid>
  </entry>
  <entry>
    <record>847</record>
    <time>2016/07/22 01:07:20.367</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage, Microsoft.VisualStudio.LanguageServices.TypeScript, Version=14.0.0.0, Culture=neutral]</description>
    <guid>{2FFE45C4-5C73-493C-B187-F2E955FF875E}</guid>
  </entry>
  <entry>
    <record>848</record>
    <time>2016/07/22 01:07:20.374</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>LegacySitePackage failed for package [Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage, Microsoft.VisualStudio.LanguageServices.TypeScript, Version=14.0.0.0, Culture=neutral]Source: &apos;Microsoft.VisualStudio.Composition&apos; Description: An exception was thrown while initializing part &quot;Microsoft.CodeAnalysis.Editor.TypeScript.ScriptContexts.TypeScriptProjectProvider&quot;.&#x000D;&#x000A;Microsoft.VisualStudio.Composition.CompositionFailedException: An exception was thrown while initializing part &quot;Microsoft.CodeAnalysis.Editor.TypeScript.ScriptContexts.TypeScriptProjectProvider&quot;. ---&gt; System.IO.IOException: Error while reading file: &apos;typescriptServices.js&apos; from location: &apos;C:\Users\YourUser\AppData\Local\assembly\dl3\VGMMC3GX.G57\8WMQ7NH1.KPN\ffb2b475\00c96cd3_2ec7d101&apos;. ---&gt; System.IO.FileNotFoundException: Could not find file &apos;C:\Users\YourUser\AppData\Local\assembly\dl3\VGMMC3GX.G57\8WMQ7NH1.KPN\ffb2b475\00c96cd3_2ec7d101\typescriptServices.js&apos;.&#x000D;&#x000A;   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)&#x000D;&#x000A;   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)&#x000D;&#x000A;   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)&#x000D;&#x000A;   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)&#x000D;&#x000A;   at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)&#x000D;&#x000A;   at System.IO.File.ReadAllText(String path)&#x000D;&#x000A;   at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.FileHelpers.ReadFile(String filePath)&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.FileHelpers.ReadFile(String filePath)&#x000D;&#x000A;   at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.FileHelpers.GetToolsVersionFromFile(IUserSettingsProvider userSettingsProvider)&#x000D;&#x000A;   at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptContexts.TypeScriptProjectProvider..ctor(SVsServiceProvider serviceProvider, ScriptIdFactory scriptIdFactory, IUserSettingsProvider userSettingsProvider, IProjectCompilationSettingsProvider projectCompilationSettingsProvider)&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.CreateValue()&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.Create()&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveNext(PartLifecycleState nextState)&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveToState(PartLifecycleState requiredState)&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.GetValueReadyToExpose()&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.&lt;&gt;c__DisplayClass15_0.&lt;GetExportedValueHelper&gt;b__0()&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.GetValueForImportElement(RuntimePartLifecycleTracker importingPartTracker, RuntimeImport import, RuntimeExport export, Func`3 lazyFactory)&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.GetValueForImportSite(RuntimePartLifecycleTracker importingPartTracker, RuntimeImport import)&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.&lt;CreateValue&gt;b__10_0(RuntimeImport import)&#x000D;&#x000A;   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()&#x000D;&#x000A;   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)&#x000D;&#x000A;   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.CreateValue()&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.Create()&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveNext(PartLifecycleState nextState)&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveToState(PartLifecycleState requiredState)&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.GetValueReadyToExpose()&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.ExportProvider.&lt;&gt;c__DisplayClass53_0.&lt;CreateExport&gt;b__0()&#x000D;&#x000A;   at System.Lazy`1.CreateValue()&#x000D;&#x000A;   at System.Lazy`1.LazyInitValue()&#x000D;&#x000A;   at System.Lazy`1.get_Value()&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.NetFxAdapters.MefV1ExportProvider.&lt;&gt;c__DisplayClass12_0.&lt;UnwrapExport&gt;b__1()&#x000D;&#x000A;   at System.ComponentModel.Composition.Primitives.Export.GetExportedValueCore()&#x000D;&#x000A;   at System.ComponentModel.Composition.Primitives.Export.get_Value()&#x000D;&#x000A;   at System.ComponentModel.Composition.ExportServices.GetCastedExportedValue[T](Export export)&#x000D;&#x000A;   at System.ComponentModel.Composition.ExportServices.&lt;&gt;c__DisplayClass12_0`1.&lt;CreateStronglyTypedLazyOfT&gt;b__1()&#x000D;&#x000A;   at System.Lazy`1.CreateValue()&#x000D;&#x000A;   at System.Lazy`1.LazyInitValue()&#x000D;&#x000A;   at System.Lazy`1.get_Value()&#x000D;&#x000A;   at Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage.SetupGlobalCommandHandlers()&#x000D;&#x000A;   at Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage.Initialize()&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveToState(PartLifecycleState requiredState)&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.GetValueReadyToExpose()&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.ExportProvider.&lt;&gt;c__DisplayClass53_0.&lt;CreateExport&gt;b__0()&#x000D;&#x000A;   at System.Lazy`1.CreateValue()&#x000D;&#x000A;   at System.Lazy`1.LazyInitValue()&#x000D;&#x000A;   at System.Lazy`1.get_Value()&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.NetFxAdapters.MefV1ExportProvider.&lt;&gt;c__DisplayClass12_0.&lt;UnwrapExport&gt;b__1()&#x000D;&#x000A;   at System.ComponentModel.Composition.Primitives.Export.GetExportedValueCore()&#x000D;&#x000A;   at System.ComponentModel.Composition.Primitives.Export.get_Value()&#x000D;&#x000A;   at System.ComponentModel.Composition.ExportServices.GetCastedExportedValue[T](Export export)&#x000D;&#x000A;   at System.ComponentModel.Composition.ExportServices.&lt;&gt;c__DisplayClass12_0`1.&lt;CreateStronglyTypedLazyOfT&gt;b__1()&#x000D;&#x000A;   at System.Lazy`1.CreateValue()&#x000D;&#x000A;   at System.Lazy`1.LazyInitValue()&#x000D;&#x000A;   at System.Lazy`1.get_Value()&#x000D;&#x000A;   at Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage.SetupGlobalCommandHandlers()&#x000D;&#x000A;   at Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage.Initialize()&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveToState(PartLifecycleState requiredState)&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.GetValueReadyToExpose()&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.ExportProvider.&lt;&gt;c__DisplayClass53_0.&lt;CreateExport&gt;b__0()&#x000D;&#x000A;   at System.Lazy`1.CreateValue()&#x000D;&#x000A;   at System.Lazy`1.LazyInitValue()&#x000D;&#x000A;   at System.Lazy`1.get_Value()&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.NetFxAdapters.MefV1ExportProvider.&lt;&gt;c__DisplayClass12_0.&lt;UnwrapExport&gt;b__1()&#x000D;&#x000A;   at System.ComponentModel.Composition.Primitives.Export.GetExportedValueCore()&#x000D;&#x000A;   at System.ComponentModel.Composition.Primitives.Export.get_Value()&#x000D;&#x000A;   at System.ComponentModel.Composition.ExportServices.GetCastedExportedValue[T](Export export)&#x000D;&#x000A;   at System.ComponentModel.Composition.ExportServices.&lt;&gt;c__DisplayClass12_0`1.&lt;CreateStronglyTypedLazyOfT&gt;b__1()&#x000D;&#x000A;   at System.Lazy`1.CreateValue()&#x000D;&#x000A;   at System.Lazy`1.LazyInitValue()&#x000D;&#x000A;   at System.Lazy`1.get_Value()&#x000D;&#x000A;   at Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage.SetupGlobalCommandHandlers()&#x000D;&#x000A;   at Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage.Initialize()&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveToState(PartLifecycleState requiredState)&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.GetValueReadyToExpose()&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.ExportProvider.&lt;&gt;c__DisplayClass53_0.&lt;CreateExport&gt;b__0()&#x000D;&#x000A;   at System.Lazy`1.CreateValue()&#x000D;&#x000A;   at System.Lazy`1.LazyInitValue()&#x000D;&#x000A;   at System.Lazy`1.get_Value()&#x000D;&#x000A;   at Microsoft.VisualStudio.Composition.NetFxAdapters.MefV1ExportProvider.&lt;&gt;c__DisplayClass12_0.&lt;UnwrapExport&gt;b__1()&#x000D;&#x000A;   at System.ComponentModel.Composition.Primitives.Export.GetExportedValueCore()&#x000D;&#x000A;   at System.ComponentModel.Composition.Primitives.Export.get_Value()&#x000D;&#x000A;   at System.ComponentModel.Composition.ExportServices.GetCastedExportedValue[T](Export export)&#x000D;&#x000A;   at System.ComponentModel.Composition.ExportServices.&lt;&gt;c__DisplayClass12_0`1.&lt;CreateStronglyTypedLazyOfT&gt;b__1()&#x000D;&#x000A;   at System.Lazy`1.CreateValue()&#x000D;&#x000A;   at System.Lazy`1.LazyInitValue()&#x000D;&#x000A;   at System.Lazy`1.get_Value()&#x000D;&#x000A;   at Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage.SetupGlobalCommandHandlers()&#x000D;&#x000A;   at Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage.Initialize()&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)System.IO.IOException: Error while reading file: &apos;typescriptServices.js&apos; from location: &apos;C:\Users\YourUser\AppData\Local\assembly\dl3\VGMMC3GX.G57\8WMQ7NH1.KPN\ffb2b475\00c96cd3_2ec7d101&apos;. ---&gt; System.IO.FileNotFoundException: Could not find file &apos;C:\Users\YourUser\AppData\Local\assembly\dl3\VGMMC3GX.G57\8WMQ7NH1.KPN\ffb2b475\00c96cd3_2ec7d101\typescriptServices.js&apos;.&#x000D;&#x000A;   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)&#x000D;&#x000A;   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)&#x000D;&#x000A;   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)&#x000D;&#x000A;   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)&#x000D;&#x000A;   at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)&#x000D;&#x000A;   at System.IO.File.ReadAllText(String path)&#x000D;&#x000A;   at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.FileHelpers.ReadFile(String filePath)&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.FileHelpers.ReadFile(String filePath)&#x000D;&#x000A;   at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.FileHelpers.GetToolsVersionFromFile(IUserSettingsProvider userSettingsProvider)&#x000D;&#x000A;   at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptContexts.TypeScriptProjectProvider..ctor(SVsServiceProvider serviceProvider, ScriptIdFactory scriptIdFactory, IUserSettingsProvider userSettingsProvider, IProjectCompilationSettingsProvider projectCompilationSettingsProvider)&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)System.IO.FileNotFoundException: Could not find file &apos;C:\Users\YourUser\AppData\Local\assembly\dl3\VGMMC3GX.G57\8WMQ7NH1.KPN\ffb2b475\00c96cd3_2ec7d101\typescriptServices.js&apos;.&#x000D;&#x000A;File name: &apos;C:\Users\YourUser\AppData\Local\assembly\dl3\VGMMC3GX.G57\8WMQ7NH1.KPN\ffb2b475\00c96cd3_2ec7d101\typescriptServices.js&apos;&#x000D;&#x000A;   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)&#x000D;&#x000A;   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)&#x000D;&#x000A;   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)&#x000D;&#x000A;   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)&#x000D;&#x000A;   at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)&#x000D;&#x000A;   at System.IO.File.ReadAllText(String path)&#x000D;&#x000A;   at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.FileHelpers.ReadFile(String filePath)</description>
    <guid>{2FFE45C4-5C73-493C-B187-F2E955FF875E}</guid>
    <hr>80131500</hr>
    <errorinfo></errorinfo>
  </entry>
  <entry>
    <record>849</record>
    <time>2016/07/22 01:07:21.945</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>SetSite failed for package [Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage, Microsoft.VisualStudio.LanguageServices.TypeScript, Version=14.0.0.0, Culture=neutral](null)</description>
    <guid>{2FFE45C4-5C73-493C-B187-F2E955FF875E}</guid>
    <hr>80131500</hr>
    <errorinfo></errorinfo>
  </entry>
  <entry>
    <record>850</record>
    <time>2016/07/22 01:07:21.951</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>End package load [Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage, Microsoft.VisualStudio.LanguageServices.TypeScript, Version=14.0.0.0, Culture=neutral]</description>
    <guid>{2FFE45C4-5C73-493C-B187-F2E955FF875E}</guid>
    <hr>80131500</hr>
    <errorinfo></errorinfo>
  </entry>

И затем я понял, что поддержка TypeScript должна быть нарушена.

Просто установка TypeScript для Visual Studio 2015, закрытие Visual Studio, а затем открытие вашего проекта снова решит вашу проблему. Сообщение исчезнет.

Ответ 3

Чтобы включить журналы для инструментов диагностики, добавьте следующие разделы реестра

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0\DiagnosticsHub\LogLevel  
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0\DiagnosticsHub\LogDirectory

Для LogLevel вы можете использовать одну из следующих строк: "Все", "Информация", "Отладка", "Предупреждение", "Ошибка" (в вашем случае я бы использовал все, чтобы лучше видеть, что происходит). Что касается LogDirectory, это каталог по вашему выбору "C:\Logs". Когда вы закончите, не забудьте удалить эти ключи, поскольку ведение журнала диагностических инструментов довольно интенсивно.

Мы пытаемся только вызывать окна сообщений в непредвиденных случаях (обычные ошибки отображаются только как ошибка в окне инструмента и никогда через окно сообщения), поэтому это звучит как проблема с сторонним приложением или какой-то странной проблемой обновления, Вы должны иметь возможность искать "Ошибка ---" в журналах и посмотреть, какая основная причина. Не стесняйтесь публиковать здесь ошибку или PM меня, и я был бы рад помочь (Примечание: я работаю в команде "Инструменты диагностики" )

Не стесняйтесь также размещать выпуск по адресу: https://connect.microsoft.com/ Каждая полученная там проблема превращается в ошибку и назначается соответствующей команде.

Ответ 5

У меня также проблема с одной из моих установок (обновление от Update 1 по сравнению с чистой установкой ISO битов Update 2 RC, которая работает). Следует отметить, что в моей установке также отсутствовала сборка ScriptedHost.dll, которую мне пришлось вручную скопировать из рабочей системы:\

Debug --- ApplicationPathService --- Hub application path is 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Platform\DiagnosticsHub'
Debug --- Scripted Control (PerformanceDebuggerSwimLanesView.manifest.json) --- Initializing the ScriptedControl with manifest file 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Platform\DiagnosticsHub\WebViews\PerformanceDebuggerSwimLanesView.manifest.json'. Base directory 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions'
Debug --- Scripted Control (PerformanceDebuggerSwimLanesView.manifest.json) --- Menu command service is provided for manifest 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Platform\DiagnosticsHub\WebViews\PerformanceDebuggerSwimLanesView.manifest.json'.
Debug --- Document ('C:\Users\Jason\AppData\Local\Temp\Report20160308-1527.diagsession') --- Graph Update data packet 1 sent (size: 1073)
Debug --- DataWarehouseInstance --- Request b1684120-6375-4091-a745-1c3d2aa2aa16: 'GraphUpdates' request to datawarehouse
Error --- Scripted Control (PerformanceDebuggerSwimLanesView.manifest.json) --- Microsoft.DiagnosticsHub.Diagnostics.InternalHubException: ScriptedSandbox terminated during control initialization.
   at     Microsoft.DiagnosticsHub.VisualStudio.Presentation.Controls.VisualStudioScriptedControl.ScriptedControlOnTerminated(Object sender, EventArgs eventArgs)
   at Microsoft.VisualStudio.ScriptedHost.ScriptedControl.add_Terminated(EventHandler`1 value)
   at Microsoft.DiagnosticsHub.VisualStudio.Presentation.Controls.VisualStudioScriptedControl.Initialize(IScriptedControlConfiguration scriptedControlConfiguration)
Error --- Service Microsoft.DiagnosticsHub.Presentation.Controls.ISwimLanesViewService implementation --- Could not create IScriptedControl.
Error --- DispatcherProvider --- Unhandled exception on DispatcherProvider.Invoke
Microsoft.DiagnosticsHub.Diagnostics.InternalHubException: Internal Diagnostics Hub Exception. See log for more details.
    at Microsoft.DiagnosticsHub.VisualStudio.Presentation.Controls.SwimLanesViewService.CreateControl(ViewDestinations viewDestinations, IEnumerable`1 swimLaneConfigurations)
    at Microsoft.DiagnosticsHub.Presentation.ViewModels.CustomViewsViewModel.OnActivated()
    at Microsoft.DiagnosticsHub.Presentation.ViewModels.PerformanceDebuggerDocumentViewModel.<>c__DisplayClass21_0.<UpdateViewBasedOnSessionState>b__1()
    at Microsoft.DiagnosticsHub.Presentation.DispatcherProvider.<>c__DisplayClass5_0.<Invoke>b__0()

Ответ 6

Включить ведение журнала, как описано в другом ответе, и увидел эту ошибку:

C:\Users\<user>\AppData\Local\assembly\dl3\EGKO838X.JT9\LMBXB9JW.4DO\4eeaf665\00d85bfc_f9cad101\WebViews\PerformanceDebuggerSwimLanesView.manifest.json' not found.

Но файл PerformanceDebuggerSwimLanesView.manifest.json существует в C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Platform\DiagnosticsHub\WebViews. Решение заключается в том, чтобы запускать Visual Studio в качестве администратора, а не исключений изнутри внутренних диагностических центров.

Ответ 7

Я нашел эту ошибку с другой причиной.

Во время отладки одно и то же сообщение отображается в Visual Studio Professional 2015 SP 3.

Зарегистрировали ошибку здесь в Microsoft: https://connect.microsoft.com/VisualStudio/feedback/details/3106402