Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WinUI 3 'XAML parsing failed' when adding <TextBox/> #8075

Closed
vsedge opened this issue Jan 6, 2023 · 2 comments
Closed

WinUI 3 'XAML parsing failed' when adding <TextBox/> #8075

vsedge opened this issue Jan 6, 2023 · 2 comments
Labels
bug Something isn't working no-issue-activity team-Markup Issue for the Markup team team-Rendering Issue for the Rendering team

Comments

@vsedge
Copy link

vsedge commented Jan 6, 2023

Describe the bug

Exception thrown Microsoft.UI.Xaml.Markup.XamlParseException: 'XAML parsing failed.' when adding to XAML file. After removing everything works flawlessly.

Steps to reproduce the bug

  1. Install .Net desktop development with Windows App SDK C# Templates
  2. Install TemplateStudioForWinUICs
  3. Create new project Template Studio for WinUI with self contained option
  4. Deploy Project
  5. Add TextBox between grid into MainPage.xaml deploy and start debugging.
  6. Result Microsoft.UI.Xaml.Markup.XamlParseException: 'XAML parsing failed.'

Details

Microsoft.UI.Xaml.Markup.XamlParseException
HResult=0x802B000A
Message=XAML parsing failed.
Source=WinRT.Runtime
StackTrace:
at WinRT.ExceptionHelpers.g__Throw|20_0(Int32 hr)
at ABI.Microsoft.UI.Xaml.IApplicationStaticsMethods.LoadComponent(IObjectReference _obj, Object component, Uri resourceLocator, ComponentResourceLocation componentResourceLocation)
at Microsoft.UI.Xaml.Application.LoadComponent(Object component, Uri resourceLocator, ComponentResourceLocation componentResourceLocation)
at TextBoxBug.Views.MainPage.InitializeComponent() in C:\Users\User\source\repos\TextBoxBug\obj\x86\Debug\net6.0-windows10.0.19041.0\win10-x86\Views\MainPage.g.i.cs:line 39

Expected behavior

No parsing error expected.

Screenshots

exception
MainPage xaml

NuGet package version

None

Windows version

Windows 10 (21H2): Build 19044

Additional context

No response

@vsedge vsedge added the bug Something isn't working label Jan 6, 2023
@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Jan 6, 2023
@gabbybilka gabbybilka added team-Markup Issue for the Markup team team-Rendering Issue for the Rendering team and removed needs-triage Issue needs to be triaged by the area owners labels Jan 6, 2023
@vsedge
Copy link
Author

vsedge commented Jan 15, 2023

I was able to test code on Intel I5 processor and it worked, my main machine on which this problem occurs has AMD Ryzen 5 1600AF. Same setup, same code just diffrent processor and it works.

@github-actions
Copy link

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working no-issue-activity team-Markup Issue for the Markup team team-Rendering Issue for the Rendering team
Projects
None yet
Development

No branches or pull requests

2 participants