2015-11-30 86 views
1

我想創建一個WPF應用程序,但是當我打開XAML設計器視圖時,我得到一個指向ActivityLog.xml文件的異常。誤差項是在這裏展示:Visual Studio 2015社區 - XAML Desginer載入速度極慢

<entry> 
    <record>433</record> 
    <time>2015/11/30 13:50:43.147</time> 
    <type>Information</type> 
    <source>VisualStudio</source> 
    <description>.NET Framework Version: 4.0.40305.0</description> 
    </entry> 
    <entry> 
    <record>434</record> 
    <time>2015/11/30 13:50:43.147</time> 
    <type>Information</type> 
    <source>VisualStudio</source> 
    <description>MSXML Version: 6.30.7601.18923</description> 
    </entry> 
    <entry> 
    <record>435</record> 
    <time>2015/11/30 13:50:47.206</time> 
    <type>Information</type> 
    <source>Extension Manager</source> 
    <description>Searching folder for extension.vsixmanifest files...</description> 
    <path>C:\Program Files (x86)\Microsoft SDKs</path> 
    </entry> 
    <entry> 
    <record>436</record> 
    <time>2015/11/30 13:50:47.262</time> 
    <type>Information</type> 
    <source>Extension Manager</source> 
    <description>Extension is enabled...</description> 
    <path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\1DSTIDTC.LPJ\</path> 
    </entry> 
    <entry> 
    <record>437</record> 
    <time>2015/11/30 13:54:46.274</time> 
    <type>Error</type> 
    <source>Editor or Editor Extension</source> 
    <description>System.NotSupportedException: Required Service &apos;ITypeResolverService&apos; not found.&#x000D;&#x000A; at Microsoft.VisualStudio.DesignTools.DesignerHost.HostServices.ServiceProviderExtensions.GetRequiredService[T](IServiceProvider serviceProvider, Type serviceType)&#x000D;&#x000A; at Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.XamlFileInformationService.CreateFileInformationContext(IHostSourceItem sourceItem)&#x000D;&#x000A; at Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.XamlLanguageService.EnsureBufferCache(IVsTextLines textLines)&#x000D;&#x000A; at Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.XamlLanguageService.EnsureBufferCache(IVsTextView view)&#x000D;&#x000A; at Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.XamlSource.BeginParse(Int32 line, Int32 idx, TokenInfo info, ParseReason reason, IVsTextView view, ParseResultHandler callback)&#x000D;&#x000A; at Microsoft.VisualStudio.Package.ViewFilter.GetDataTipText(TextSpan[] aspan, String&amp; textValue)&#x000D;&#x000A; at Microsoft.VisualStudio.Editor.Implementation.ShimQuickInfoSource.TryGetQuickInfoFromFilter(IQuickInfoSession session, TextSpan[] dataBufferTextSpan, String&amp; tipText)&#x000D;&#x000A; at Microsoft.VisualStudio.Editor.Implementation.ShimQuickInfoSource.AugmentQuickInfoSession(IQuickInfoSession session, IList`1 qiContent, ITrackingSpan&amp; applicableToSpan)&#x000D;&#x000A; at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Recalculate()&#x000D;&#x000A; at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Start()&#x000D;&#x000A; at Microsoft.VisualStudio.Language.Intellisense.Implementation.DefaultQuickInfoController.OnTextView_MouseHover(Object sender, MouseHoverEventArgs e)&#x000D;&#x000A; at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.RaiseHoverEvents()</description> 
    </entry> 
    <entry> 
    <record>438</record> 
    <time>2015/11/30 13:54:51.921</time> 
    <type>Error</type> 
    <source>Editor or Editor Extension</source> 
    <description>System.NotSupportedException: Required Service &apos;ITypeResolverService&apos; not found.&#x000D;&#x000A; at Microsoft.VisualStudio.DesignTools.DesignerHost.HostServices.ServiceProviderExtensions.GetRequiredService[T](IServiceProvider serviceProvider, Type serviceType)&#x000D;&#x000A; at Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.XamlFileInformationService.CreateFileInformationContext(IHostSourceItem sourceItem)&#x000D;&#x000A; at Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.XamlLanguageService.EnsureBufferCache(IVsTextLines textLines)&#x000D;&#x000A; at Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.XamlLanguageService.EnsureBufferCache(IVsTextView view)&#x000D;&#x000A; at Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.XamlSource.BeginParse(Int32 line, Int32 idx, TokenInfo info, ParseReason reason, IVsTextView view, ParseResultHandler callback)&#x000D;&#x000A; at Microsoft.VisualStudio.Package.ViewFilter.GetDataTipText(TextSpan[] aspan, String&amp; textValue)&#x000D;&#x000A; at Microsoft.VisualStudio.Editor.Implementation.ShimQuickInfoSource.TryGetQuickInfoFromFilter(IQuickInfoSession session, TextSpan[] dataBufferTextSpan, String&amp; tipText)&#x000D;&#x000A; at Microsoft.VisualStudio.Editor.Implementation.ShimQuickInfoSource.AugmentQuickInfoSession(IQuickInfoSession session, IList`1 qiContent, ITrackingSpan&amp; applicableToSpan)&#x000D;&#x000A; at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Recalculate()&#x000D;&#x000A; at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Start()&#x000D;&#x000A; at Microsoft.VisualStudio.Language.Intellisense.Implementation.DefaultQuickInfoController.OnTextView_MouseHover(Object sender, MouseHoverEventArgs e)&#x000D;&#x000A; at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.RaiseHoverEvents()</description> 
    </entry> 
</activity> 

這裏是異常的詳細信息本身:

System.NotSupportedException: Required Service &apos;ITypeResolverService&apos; not found.&#x000D;&#x000A; 
     at Microsoft.VisualStudio.DesignTools.DesignerHost.HostServices.ServiceProviderExtensions.GetRequiredService[T](IServiceProvider serviceProvider, Type serviceType)&#x000D;&#x000A; 
     at Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.XamlFileInformationService.CreateFileInformationContext(IHostSourceItem sourceItem)&#x000D;&#x000A; 
     at Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.XamlLanguageService.EnsureBufferCache(IVsTextLines textLines)&#x000D;&#x000A; 
     at Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.XamlLanguageService.EnsureBufferCache(IVsTextView view)&#x000D;&#x000A; 
     at Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.XamlSource.BeginParse(Int32 line, Int32 idx, TokenInfo info, ParseReason reason, IVsTextView view, ParseResultHandler callback)&#x000D;&#x000A; 
     at Microsoft.VisualStudio.Package.ViewFilter.GetDataTipText(TextSpan[] aspan, String&amp; textValue)&#x000D;&#x000A; 
     at Microsoft.VisualStudio.Editor.Implementation.ShimQuickInfoSource.TryGetQuickInfoFromFilter(IQuickInfoSession session, TextSpan[] dataBufferTextSpan, String&amp; tipText)&#x000D;&#x000A; 
     at Microsoft.VisualStudio.Editor.Implementation.ShimQuickInfoSource.AugmentQuickInfoSession(IQuickInfoSession session, IList`1 qiContent, ITrackingSpan&amp; applicableToSpan)&#x000D;&#x000A; 
     at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Recalculate()&#x000D;&#x000A; 
     at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Start()&#x000D;&#x000A; 
     at Microsoft.VisualStudio.Language.Intellisense.Implementation.DefaultQuickInfoController.OnTextView_MouseHover(Object sender, MouseHoverEventArgs e)&#x000D;&#x000A; 
     at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.RaiseHoverEvents() 

花幾分鐘來加載和給我這個異常後,設計視圖將發揮作用,但它是太慢,幾乎無法使用,並且會讓我的整個VS會話滯後(它在設計器視圖關閉時自行修正)。

我沒有XAML的經驗,所以我需要一種可視化的方式來創建。有沒有辦法解決這個問題,或者我可以使用的免費擴展?

+1

你能提供一些系統信息嗎? GPU和CPU的細節會很好。另外,嘗試在VS上執行修復,請參閱此處瞭解詳細信息:https://msdn.microsoft.com/en-us/library/aa983433(v=vs.90).aspx –

+0

CPU:Intel(R)至強®CPU E5-1650 v3 @ 3.50GHz(12 CPU),〜3.5GHz,GPU:AMD FirePro W8100,我真的不認爲我的硬件是個問題。此外,我已經嘗試了修復和完全重新安裝VS沒有任何成功。 – Luke4792

+1

您是否在Visual Studio中啓用了任何插件/擴展?如果是這樣,我會嘗試關閉它們,看看是否有幫助 – Taegost

回答

0

固定!這是通過卸載.NET 4.6,安裝.NET 4,重新安裝Windows SDK,然後重新安裝所有必需的.NET軟件包完成的。

+0

.NET 4.6.1有三個包,.NET 4.6.0有三個包。所有六個都應該被刪除? –

+0

只需刪除所有內容,無論如何您都可以重新安裝。 – Luke4792