Visual Studio的扩展在某些PC上抛出了无意义的异常

时间:2016-09-09 08:56:02

标签: c# wpf git visual-studio visual-studio-2015

最近我使用Visual Studio的Team Explorer扩展为Bitbucket创建了一个扩展。这是:https://visualstudiogallery.msdn.microsoft.com/6f8954a6-2358-4f4a-b69b-e51199935fad。即使在干净的系统安装(Win 10 x64,Visual Studio 2015社区)上,它在我的机器上也能正常工作。我还对VDI进行了一些测试,一切都很完美。然后我的一个朋友报告他在安装我的插件后出现异常。重要的是它可以重现,所以他总是得到它。该错误没有意义,它在团队资源管理器部分的某个地方被视觉工作室团队服务框架抛出。我忽略了这个问题,因为我认为这与PC有关。现在昨天另一个人报告了完全相同的问题。您可以在Q和A部分找到它们。我很乐意提供任何帮助,如有必要,我可以分享代码。一些例外:

    System.Windows.Markup.XamlParseException: Provide value on 'System.Windows.StaticResourceExtension' threw an exception. ---> System.NotImplementedException: The method or operation is not implemented.
   at System.Windows.Baml2006.Baml2006SchemaContext.ResolveBamlType(BamlType bamlType, Int16 


at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
   at Microsoft.TeamFoundation.Git.Controls.Commits.GitCommitsPageView.InitializeComponent()
   at Microsoft.TeamFoundation.Git.Controls.Commits.GitCommitsPageView..ctor()
   at Microsoft.TeamFoundation.Git.Provider.Commits.GitCommitsPageVs.CreateView(PageInitializeEventArgs e)
   at Microsoft.TeamFoundation.Controls.WPF.TeamExplorer.TeamExplorerPageBase.Initialize(Object sender, PageInitializeEventArgs e)
   at Microsoft.TeamFoundation.Git.Controls.GitTeamExplorerPageBase.Initialize(Object sender, PageInitializeEventArgs e)
   at Microsoft.TeamFoundation.Git.Provider.Commits.GitCommitsPageVs.Initialize(Object sender, PageInitializeEventArgs e)
   at Microsoft.TeamFoundation.Controls.WPF.TeamExplorer.Framework.TeamExplorerPageHost.Initialize(TeamExplorerPageContext context)

System.ArgumentException: Object of type 'System.Collections.Generic.List`1[System.Lazy`2[Microsoft.TeamFoundation.Controls.WinForms.WebBrowserNavigateErrorEventArgs,Microsoft.TeamFoundation.Controls.WinForms.ThemeInvariantWinformsIcons]]' cannot be converted to type 'System.Collections.Generic.List`1[System.Lazy`2[Microsoft.TeamFoundation.Controls.ITeamExplorerNavigationItem,Microsoft.TeamFoundation.Controls.WPF.TeamExplorer.Framework.ITeamExplorerNavigationItemMetadata]]'.

0 个答案:

没有答案