Visual Studio 用户缓存

Visual Studio user cache

在VS中开发我的项目时,我正在使用Syncfusion的工具来制作功能区并支持对接。使用 "Customize Ribbon" 对话框编辑功能区时,程序崩溃了。现在,当我尝试打开程序时。我收到此错误:

System.Windows.Markup.XamlParseException: 'Root element is missing.

这是调试控制台的输出:

'Analyze 2017.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\git\RevolveAnalyze2017\Revolve Analyze\Analyze 2017\bin\Debug\Analyze 2017.exe'. Symbols loaded.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework\v4.0_4.0.0.0__31bf3856ad364e35\PresentationFramework.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\PresentationCore\v4.0_4.0.0.0__31bf3856ad364e35\PresentationCore.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsBase.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xaml\v4.0_4.0.0.0__b77a5c561934e089\System.Xaml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Step into: Stepping over non-user code 'Analyze_2017.App..ctor'
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Step into: Stepping over non-user code 'Analyze_2017.App.InitializeComponent'
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\git\RevolveAnalyze2017\Revolve Analyze\Analyze 2017\bin\Debug\Syncfusion.Tools.Wpf.dll'. Module was built without symbols.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\git\RevolveAnalyze2017\Revolve Analyze\Analyze 2017\bin\Debug\SciChart.Charting.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\git\RevolveAnalyze2017\Revolve Analyze\Analyze 2017\bin\Debug\SciChart.Data.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\git\RevolveAnalyze2017\Revolve Analyze\Analyze 2017\bin\Debug\SciChart.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\git\RevolveAnalyze2017\Revolve Analyze\Analyze 2017\bin\Debug\Syncfusion.SfSkinManager.WPF.dll'. Module was built without symbols.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\Users\kiddi\AppData\Local\Temp\VisualStudio.XamlDiagnostics.7564\Microsoft.VisualStudio.DesignTools.WpfTap.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\git\RevolveAnalyze2017\Revolve Analyze\Analyze 2017\bin\Debug\Syncfusion.Shared.Wpf.dll'. Module was built without symbols.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\SMDiagnostics\v4.0_4.0.0.0__b77a5c561934e089\SMDiagnostics.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Internals.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'SciChart.Core&'. Module was built without symbols.
The thread 0x2734 has exited with code 0 (0x0).
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\git\RevolveAnalyze2017\Revolve Analyze\Analyze 2017\bin\Debug\AvalonDock.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationProvider\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationProvider.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationTypes\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationTypes.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\git\RevolveAnalyze2017\Revolve Analyze\Analyze 2017\bin\Debug\Syncfusion.Themes.Blend.WPF.dll'. Module was built without symbols.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework.Aero2\v4.0_4.0.0.0__31bf3856ad364e35\PresentationFramework.Aero2.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\git\RevolveAnalyze2017\Revolve Analyze\Analyze 2017\bin\Debug\SciChart.Drawing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WindowsFormsIntegration\v4.0_4.0.0.0__31bf3856ad364e35\WindowsFormsIntegration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework.Luna\v4.0_4.0.0.0__31bf3856ad364e35\PresentationFramework.Luna.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework.Aero\v4.0_4.0.0.0__31bf3856ad364e35\PresentationFramework.Aero.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework-SystemXml\v4.0_4.0.0.0__b77a5c561934e089\PresentationFramework-SystemXml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Exception thrown: 'System.Exception' in Analyze 2017.exe
Downloaded valid unpacking rules from https://raw.githubus10000ercontent.com/RevolveNTNU/Telemetry-unpacking-rules-2017/master/parsing.cs?token=AVaK2e3AkDmrF7Ypd7KRW8qImovRfKs4ks5YjzTdwA%3D%3D
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\Users\kiddi\AppData\Local\Temp\keucrxun.dll'. Module was built without symbols.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\git\RevolveAnalyze2017\Revolve Analyze\Analyze 2017\bin\Debug\LiteDB.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'Anonymously Hosted DynamicMethods Assembly'. 
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Analyze 2017.exe' (CLR v4.0.30319: Analyze 2017.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework-SystemXmlLinq\v4.0_4.0.0.0__b77a5c561934e089\PresentationFramework-SystemXmlLinq.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

我认为发生的事情是我设法在功能区中创建了一个新元素,它在我的用户缓存中以外的任何地方都不存在。我试图删除 e.a 中的一些缓存。应用数据和本地应用数据。我也试过重新安装 VS (RC 2017)。

我已经尝试重新克隆项目并重新安装 VS,但似乎没有任何效果。我也可以 运行 在另一台 PC 上运行该项目。

我的问题可能有一个简单的解决方案,但经过几个小时的搜索后我似乎找不到它。如果外部网站存在,我很乐意被推荐 :)

如果通常的 visual studio 东西不起作用,您将不得不尝试 Syncfusion 的支持(它看起来非常适合他们)。

通常的Visual Studio东西...

  1. 删除文件,新建一个,复制旧文件的内容 英寸
  2. 重新创建项目。
  3. 回滚(使用版本控制工具)

很难说我们还能在这里提供什么帮助,而不了解更多关于这里的幕后实际情况(Syncfusion 人员应该能够为您查看)。

如果有人想知道,请在这里转发 Syncfusion 的回答:

As you have mentioned that you are facing the exception while using Ribbon control in your application, we need to analyze the features of Ribbon which has been used in your application. This may help us to narrow down the issue from our side. Also, we suspect that have set “AutoPersist” property as true for Ribbon as you mentioned that your problem is related to local cache. If so, then Ribbon state has been saved in below location in “.dat” format.

Location: C:\Users\<UserName>\AppData\Local\IsolatedStorage\

我最后做的是删除 IsolatedStorage 的所有内容。它工作得很好。感谢 Syncfusions 出色的客户服务!