Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Windows version too new for Forms.UI.XamlHost #310

Open
ScruffR opened this issue Feb 26, 2021 · 4 comments
Open

Windows version too new for Forms.UI.XamlHost #310

ScruffR opened this issue Feb 26, 2021 · 4 comments
Labels
bug 🐛 Something isn't working XamlIslands 🏝️

Comments

@ScruffR
Copy link

ScruffR commented Feb 26, 2021

Describe the bug

I get this exception thrown when I try to create an instance of Microsoft.Toolkit.Forms.UI.XamlHost

System.Exception
  HResult=0x8000FFFF
  Message=Catastrophic failure

WindowsXamlManager and DesktopWindowXamlSource are supported for apps targeting Windows version 10.0.18226.0 and later.  Please check either the application manifest or package manifest and ensure the MaxTestedVersion property is updated.
  Source=<Cannot evaluate the exception source>
  StackTrace:
<Cannot evaluate the exception stack trace>

Steps to Reproduce

Steps to reproduce the behavior:

  1. Create a new .NET Core 3.1 Forms App
  2. Install packages
  3. Create a private Microsoft.Toolkit.Forms.UI.XamlHost.WindowsXamlHost xamlHost;
  4. Add this.xamlHost = new Microsoft.Toolkit.Forms.UI.XamlHost.WindowsXamlHost(); to InitializeComponents()
  5. run

Expected behavior

Shouldn't crash

Environment

NuGet Package(s): 

Package Version(s): 
![image](https://user-images.githubusercontent.com/6604878/109241639-f495d200-77d9-11eb-90ec-c1713d6ca0ec.png)

Project .NET Version:
- [X] .NET Core 3.1 

Windows 10 Build Number:
- [X] 20H2 Update (19042.844)

App min and target version:
- [X] May 2019 Update (18362)

Device form factor:
- [X] Surface Pro 7

Visual Studio 
- [X] 2019 (version: 16.8.6) 
- [X] 2019 Preview (version: 16.9.0 Preview 5.0)

@ScruffR ScruffR added the bug 🐛 Something isn't working label Feb 26, 2021
@ghost ghost added the needs triage 🔍 label Feb 26, 2021
@ghost
Copy link

ghost commented Feb 26, 2021

Hello ScruffR, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

@ghost ghost added the needs attention 👋 label Mar 13, 2021
@ghost
Copy link

ghost commented Mar 13, 2021

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

@dcwork
Copy link

dcwork commented Mar 17, 2021

@ScruffR Did you create an app.manifest in your WinForms app similar to what is shown in this post?

@michael-hawker
Copy link
Member

FYI @marb2000

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug 🐛 Something isn't working XamlIslands 🏝️
Projects
None yet
Development

No branches or pull requests

3 participants