未处理的异常System.TypeInitializationException MS.Internal.GridControl.GridPanelAdorner ... [英] Unhandled exception System.TypeInitializationException MS.Internal.GridControl.GridPanelAdorner...

查看:63
本文介绍了未处理的异常System.TypeInitializationException MS.Internal.GridControl.GridPanelAdorner ...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!



我有这个错误 3天 在Visual Studio 2010和.Net Framework 4上:

Hi everybody!

I have this error for 3 days on Visual Studio 2010 and .Net Framework 4 :

System.TypeInitializationException

Une exception aé té levé e par l'initialiseur de type pour'MS.Internal.Interaction.DesignerResources'。

   à MS.Internal.GridControl.GridPanelAdorner..ctor(ModelItem gridItem)

   à MS.Internal.GridControl.GridDesigner..ctor(ModelItem gridItem)

   à MS.Internal.GridControl.GridDesigner.GetDesigner(ModelItem gridItem)

   à MS.Internal.GridControl.AlwaysVisibleGridAdornerProvider.Activate(ModelItem item)

   à Microsoft.Windows.Design.Interaction.AdornerProvider.InvokeActivate(EditingContext context,ModelItem item)

   à MS.Internal.Features.AdornerProviderFeatureConnector.FeatureProvidersAdded(ModelItem item,IEnumerable`1 extensions)

   à Microsoft.Windows.Design.Policies.PolicyDrivenFeatureConnector`1.UpdateFeatureProviders()

   à MS.Internal.Features.PolicyDrivenToolFeatureConnector`1.UpdateCurrentTool(Tool newTool)

   à MS.Internal.Features.PolicyDrivenToolFeatureConnector`1。< .ctor> b__0(工具newTool)

   à Microsoft.Windows.Design.ContextItemManager.SubscribeProxy`1.SubscribeContext(ContextItem item)

   à Microsoft.Windows.Design.SubscribeContextCallback.Invoke(ContextItem item)

   à Microsoft.Windows.Design.EditingContext.DefaultContextItemManager.OnItemChanged(ContextItem item)

   à Microsoft.Windows.Design.EditingContext.DefaultContextItemManager.SetValue(ContextItem value)

   à MS.Internal.Host.ToolSubsystem.ActivateTool(ToolFactory toolFactory)

   à MS.Internal.Host.ToolSubsystem..ctor(EditingContext editingContext,DesignerContext designerContext)

   à MS.Internal.Host.Designer.Load()

   à MS.Internal.Designer.VSDesigner.Load()

   à MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.Load()

   à MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedDesignerFactory.Load(IsolatedView视图)

   à MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory,IsolatedView视图)

   à MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory,IsolatedView视图)

   à MS.Internal.Host.Isolation.IsolatedDesigner.Load()

   à MS.Internal.Designer.DesignerPane.LoadDesignerView()
$


 

System.TypeInitializationException

Une exception aé té levé e par l'initialiseur de type pour'Microsoft.Windows.Design.Interaction.AdornerColors'。

   à MS.Internal.Interaction.DesignerResourceDictionary..ctor()

   à MS.Internal.Interaction.DesignerResources。< .cctor> b__0()

   à Microsoft.Windows.Design.Interaction.AdornerResources.RegisterResources(LoadResourcesCallback回调)

   à MS.Internal.Interaction.DesignerResources..cctor()
$


 

System.Exception

Le composant'MS.Internal.Interaction.AdornerColorResourceDictionary'ne possè de pas de ressource identifié e par l'URI' / Microoft.Windows.Design.Interaction ;component/ms/internal/interaction/adornercolorresourcedictionary.xaml'.

   à System.Windows.Application.LoadComponent(Object component,Uri resourceLocator)

   à MS.Internal.Interaction.AdornerColorResourceDictionary.InitializeComponent()

   à MS.Internal.Interaction.AdornerColorResourceDictionary..ctor()

   à Microsoft.Windows.Design.Interaction.AdornerColors。< .cctor> b__0()

   à Microsoft.Windows.Design.Interaction.AdornerResources.RegisterResources(LoadResourcesCallback回调)

   à Microsoft.Windows.Design.Interaction.AdornerColors..cctor()



有关如何解决此问题的任何建议吗?



谢谢,

System.TypeInitializationException
Une exception a été levée par l'initialiseur de type pour 'MS.Internal.Interaction.DesignerResources'.
   à MS.Internal.GridControl.GridPanelAdorner..ctor(ModelItem gridItem)
   à MS.Internal.GridControl.GridDesigner..ctor(ModelItem gridItem)
   à MS.Internal.GridControl.GridDesigner.GetDesigner(ModelItem gridItem)
   à MS.Internal.GridControl.AlwaysVisibleGridAdornerProvider.Activate(ModelItem item)
   à Microsoft.Windows.Design.Interaction.AdornerProvider.InvokeActivate(EditingContext context, ModelItem item)
   à MS.Internal.Features.AdornerProviderFeatureConnector.FeatureProvidersAdded(ModelItem item, IEnumerable`1 extensions)
   à Microsoft.Windows.Design.Policies.PolicyDrivenFeatureConnector`1.UpdateFeatureProviders()
   à MS.Internal.Features.PolicyDrivenToolFeatureConnector`1.UpdateCurrentTool(Tool newTool)
   à MS.Internal.Features.PolicyDrivenToolFeatureConnector`1.<.ctor>b__0(Tool newTool)
   à Microsoft.Windows.Design.ContextItemManager.SubscribeProxy`1.SubscribeContext(ContextItem item)
   à Microsoft.Windows.Design.SubscribeContextCallback.Invoke(ContextItem item)
   à Microsoft.Windows.Design.EditingContext.DefaultContextItemManager.OnItemChanged(ContextItem item)
   à Microsoft.Windows.Design.EditingContext.DefaultContextItemManager.SetValue(ContextItem value)
   à MS.Internal.Host.ToolSubsystem.ActivateTool(ToolFactory toolFactory)
   à MS.Internal.Host.ToolSubsystem..ctor(EditingContext editingContext, DesignerContext designerContext)
   à MS.Internal.Host.Designer.Load()
   à MS.Internal.Designer.VSDesigner.Load()
   à MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.Load()
   à MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedDesignerFactory.Load(IsolatedView view)
   à MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view)
   à MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view)
   à MS.Internal.Host.Isolation.IsolatedDesigner.Load()
   à MS.Internal.Designer.DesignerPane.LoadDesignerView()

 
System.TypeInitializationException
Une exception a été levée par l'initialiseur de type pour 'Microsoft.Windows.Design.Interaction.AdornerColors'.
   à MS.Internal.Interaction.DesignerResourceDictionary..ctor()
   à MS.Internal.Interaction.DesignerResources.<.cctor>b__0()
   à Microsoft.Windows.Design.Interaction.AdornerResources.RegisterResources(LoadResourcesCallback callback)
   à MS.Internal.Interaction.DesignerResources..cctor()

 
System.Exception
Le composant 'MS.Internal.Interaction.AdornerColorResourceDictionary' ne possède pas de ressource identifiée par l'URI '/Microsoft.Windows.Design.Interaction;component/ms/internal/interaction/adornercolorresourcedictionary.xaml'.
   à System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
   à MS.Internal.Interaction.AdornerColorResourceDictionary.InitializeComponent()
   à MS.Internal.Interaction.AdornerColorResourceDictionary..ctor()
   à Microsoft.Windows.Design.Interaction.AdornerColors.<.cctor>b__0()
   à Microsoft.Windows.Design.Interaction.AdornerResources.RegisterResources(LoadResourcesCallback callback)
   à Microsoft.Windows.Design.Interaction.AdornerColors..cctor()

Any suggestions how to fix this issue?

Thanks,

Nico

推荐答案

感谢您让我们意识到这一点问题。为了让我们能够 进一步研究这个问题,从你那里获得更多信息会很高兴。

Thank you for making us aware of this issue. In order for us to  investigate this issue further it would be nice to get some more information from you.

1。)你什么时候遇到这个问题?是你第一次打开WPF / Silverlight设计师的时候?您是否必须在WPF / Silverlight设计器中执行某种类型的操作才能导致异常?

2.)您是否有一个示例项目或一组可用于重现此项目的步骤?问题&NBSP;如果是这样,您是否介意与我们共享项目?

3.)您似乎正在运行Visual Studio的本地化版本。您正在运行什么语言和SKU的Visual Studio以及您使用的操作系统?

1.) When do you run into this problem? Is it when you first open the WPF/Silverlight designer? Do you have to perform a certain type of action in the WPF/Silverlight designer to cause the exception?
2.) Do you have a sample project or a set of steps that could be used to reproduce this issue?  If so would you mind sharing the project with us?
3.) It appears that you are running a localized version of Visual Studio. What language and SKU of Visual Studio are you running and what OS are you using?

请随时通过电子邮件将答案直接发送给我(davann AT microsoft DOT com),以便我们快速完成试着找到解决这个问题的方法。

Please feel free to email the answer to me directly at (davann AT microsoft DOT com) so we can quickly try to find a resolution to this problem.

谢谢,

Dan

SDET WPF \Silverlight Designer,Visual Studio

SDET WPF\Silverlight Designer, Visual Studio


这篇关于未处理的异常System.TypeInitializationException MS.Internal.GridControl.GridPanelAdorner ...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆