gpt4 book ai didi

visual-studio - 如何在VS 2015 Update 1中修复 “Internal Diagnostics Hub Exception”?

转载 作者:行者123 更新时间:2023-12-03 09:11:05 28 4
gpt4 key购买 nike

我刚刚更新到Visual Studio 2015 Update 1,并且每当我开始调试时,我都会收到错误消息:

Internal Diagnostics Hub Exception. See log for more details.



Screenshot of error message

如何解决此问题,或禁用该错误?

我不知道应该检查哪个日志文件。在 ActivityLog.xml中,最后一个条目是昨天,所以其中不包含任何有用的内容。接下来,我知道有一个MEF日志文件( Microsoft.VisualStudio.Default.err),但这是空的。如何对此进行调查?

最佳答案

我进入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的支持。

只需 installing TypeScript for Visual Studio 2015,关闭Visual Studio,然后再次打开您的项目即可解决您的问题。该消息将消失。

关于visual-studio - 如何在VS 2015 Update 1中修复 “Internal Diagnostics Hub Exception”?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34070673/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com