question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Microsoft.UI.Xaml.Markup.XamlParseException: 'XAML parsing failed.'

See original GitHub issue

occuring at InitializeComponent(), which isn’t telling much, however the Xaml file is pretty simple.

image

In the generated file the respective line is :

global::Microsoft.UI.Xaml.Application.LoadComponent(this, resourceLocator, global::Microsoft.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);

<Page
    x:Class="Weather.History.WinUI.Pages.SingleChartPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:ig="using:Infragistics.Controls.Charts"
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
    mc:Ignorable="d">

    <Grid>
        <ig:XamDataChart/>
    </Grid>
</Page>

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sigmarssoncommented, Feb 23, 2021
   at WinRT.ExceptionHelpers.ThrowExceptionForHR(Int32 hr)
   at ABI.Microsoft.UI.Xaml.IApplicationStatics.global::Microsoft.UI.Xaml.IApplicationStatics.LoadComponent(Object component, Uri resourceLocator, ComponentResourceLocation componentResourceLocation)
   at Microsoft.UI.Xaml.Application.LoadComponent(Object component, Uri resourceLocator, ComponentResourceLocation componentResourceLocation)
   at Weather.History.WinUI.Pages.SingleChartPage.InitializeComponent() in C:\Users\Tommy\source\repos\Weather History\net5\Weather.History.WinUI\Weather.History.WinUI\obj\x86\Debug\net5.0-windows10.0.18362.0\Pages\SingleChartPage.g.i.cs:line 45
   at Weather.History.WinUI.Pages.SingleChartPage..ctor() in C:\Users\Tommy\source\repos\Weather History\net5\Weather.History.WinUI\Weather.History.WinUI\Pages\SingleChartPage.xaml.cs:line 38
   at Weather.History.WinUI.Weather_History_WinUI_XamlTypeInfo.XamlTypeInfoProvider.Activate_33_SingleChartPage() in C:\Users\Tommy\source\repos\Weather History\net5\Weather.History.WinUI\Weather.History.WinUI\obj\x86\Debug\net5.0-windows10.0.18362.0\XamlTypeInfo.g.cs:line 573
   at Weather.History.WinUI.Weather_History_WinUI_XamlTypeInfo.XamlUserType.ActivateInstance() in C:\Users\Tommy\source\repos\Weather History\net5\Weather.History.WinUI\Weather.History.WinUI\obj\x86\Debug\net5.0-windows10.0.18362.0\XamlTypeInfo.g.cs:line 8926
   at ABI.Microsoft.UI.Xaml.Markup.IXamlType.Do_Abi_ActivateInstance_13(IntPtr thisPtr, IntPtr* result)

I modified a little bit the chart control properties and now GetForCurrentView() isn’t playing a role here. The LoadComponent() failed.

Can I find more info than “Xaml parser failed” ?

0reactions
evelynwu-msftcommented, Mar 10, 2021

That is correct. I’m going to close this issue since the 3rd party control library is not currently compatible with WinUI 3.

Read more comments on GitHub >

github_iconTop Results From Across the Web

'XAML parsing failed.' - WinAppSDK 1.1 Preview 2
This error can happen if there is a bug in MainWindow.xaml not detected by the XAML compiler. For example, if I set a...
Read more >
"XAML parsing failed" - do you think this is a good ...
Runtime.dll , which creates the Microsoft.UI.Xaml.Markup.XamlParseException exception (the "XAML parsing failed" error) doesn't include the ...
Read more >
How to fix "Xaml parsing failed"?
I'm using Visual Studio Enterprise 2017. When i try to run my UWP project on Mobile Emulator I'm getting "Xaml parse failed" error....
Read more >
Here's how to fix XAML Parse error once and for all
Here's how to fix XAML Parse error once and for all · Download Outbyte Driver Updater. · Launch it on your PC to...
Read more >
Unpackaged - XAML parsing failed in UI for WinUI
A possible reason for this exception that comes to mind is if the Generic.xaml dictionary is not merged in the resources of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found