Unpackaged - XAML parsing failed

1 Answer 531 Views
DataGrid General Discussions
Jeonghoon
Top achievements
Rank 1
Jeonghoon asked on 20 Jan 2022, 03:48 PM

 

dear sir

I can't be executed in the unpackage mode.

 

 

 

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 25 Jan 2022, 01:40 PM

Hello Jeonghoon,

Thank you for the provided images.

A possible reason for this exception that comes to mind is if the Generic.xaml dictionary is not merged in the resources of the application as stated here: Add Styles to the DataGrid.

<Application.Resources> 
    <ResourceDictionary> 
        <ResourceDictionary.MergedDictionaries> 
            <XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" /> 
            <ResourceDictionary Source="ms-appx:///Telerik.WinUI.Controls/Themes/Generic.xaml"/> 
            <!-- Other merged dictionaries here --> 
        </ResourceDictionary.MergedDictionaries> 
        <!-- Other app resources here --> 
    </ResourceDictionary> 
</Application.Resources> 

If you have not done so, can you please try adding this dictionary and check if the exception is still thrown?

If that is indeed the case, please share the full Message of the exception and ideally - a small sample project which demonstrates it so that I can provide further guidance on the matter.

Regards,
Dilyan Traykov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Jeonghoon
Top achievements
Rank 1
commented on 26 Jan 2022, 02:16 PM

Dear Dilyan Traykov.

Thank you for your answer.

 

<ResourceDictionary Source="ms-appx:///Telerik.WinUI.Controls/Themes/Generic.xaml"/> 

The resource is already referenced.

 

It works fine in package mode build. 

But unpackaged mode is not working.

 

Thank you.

Dilyan Traykov
Telerik team
commented on 28 Jan 2022, 04:02 PM

Hello Jeonghoon,

Thank you for the provided project. Indeed, upon running it, I was also presented with an exception.

I have traced its source and can confirm that this seems to be a bug at our end. I have thus logged the following bug report regarding it on your behalf: Exception is thrown when creating an unpackaged application. As a thank you for your help in addressing this, I've also awarded you some Telerik points.

Please follow the item to get notified about any changes in its status. I hope we can resolve this issue soon.

Tags
DataGrid General Discussions
Asked by
Jeonghoon
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or