WPF, XAML, Visual Studio 2010 Designer : exception non gérée
Bonjour,
J'utilise Visual Studio 2010 et .NET Framework 4 et ça fait 3/4 mois que je me suis mis au WPF et j'ai l'impression que les outils Microsoft ne sont pas au points ou alors je ne saisi pas la logique. En tout cas WPF, ajoute une couche de complexité supplémentaire...
J'ai sans arrêt des erreurs dans le Designer, le concepteur XAML :
http://images.imagehotel.net/tmrkluwaac.png
Aujourd'hui, j'ai ce message :
Citation:
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()
Je ne sais pas d'où ça vient !
Si quelqu'un a une idée pour m'aider.