How do you debug a XamlParseException?
Posted
by Craig Shearer
on Stack Overflow
See other posts from Stack Overflow
or by Craig Shearer
Published on 2010-05-21T02:58:17Z
Indexed on
2010/05/21
3:00 UTC
Read the original article
Hit count: 641
xaml
|Silverlight
I'm trying to use a 3rd party component in my Silverlight application and when I try to create an instance of the control, I get a XamlParseException:
{System.Windows.Markup.XamlParseException: Set property 'System.Windows.FrameworkElement.Style' threw an exception. [Line: 0 Position: 0] ---> System.Windows.Markup.XamlParseException: Elements in the same ResourceDictionary cannot have the same x:Key [Line: 1739 Position: 47] at MS.Internal.XcpImports.CreateFromXaml(UnmanagedMemoryStream stream, String sourceAssemblyName, Boolean createNamescope, Boolean requireDefaultNamespace, Boolean allowEventHandlers) at System.Windows.Controls.Control.GetBuiltInStyle(IntPtr nativeTarget, IntPtr& nativeStyle) --- End of inner exception stack trace --- at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator) at SpellCheckerSample.StandardSpellDialog.InitializeComponent() at SpellCheckerSample.StandardSpellDialog..ctor()}
How can I debug this? How do I know what file line 1739, Position 47 is in?
© Stack Overflow or respective owner