Bug 41973 - UWP keep throw PlatformNotSupportedException when every new Page() when enable Native Compiler
Summary: UWP keep throw PlatformNotSupportedException when every new Page() when enabl...
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 2.3.4
Hardware: PC Windows
: Normal major
Target Milestone: UWP
Assignee: Bugzilla
Depends on:
Reported: 2016-06-18 15:58 UTC by Mike
Modified: 2018-01-22 21:39 UTC (History)
8 users (show)

Tags: ac, uwp
Is this bug a regression?: ---
Last known good build:

Sample (113.07 KB, application/zip)
2016-06-18 15:58 UTC, Mike

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 41973 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Mike 2016-06-18 15:58:01 UTC
Created attachment 16393 [details]

My UWP app keep throw PlatformNotSupportedException when enable Native Compiler.(In the Default only enable on Release mode)

It looks like mostly throw when create a Page. like:

Page1 page  = new Page();

I upload a project sample for test.
Comment 1 Mike 2016-06-19 19:12:11 UTC
it will not show after add : [assembly: XamlCompilation(XamlCompilationOptions.Compile)]
Comment 2 Alan Anderson 2016-12-09 23:11:00 UTC
I'm seeing the same behavior in release, I can kill the app and restart and it works. It is just flooding the output window with the PlatformNoSupportedException message when it doesn't show the page.
Comment 3 Mike Miller 2018-01-22 21:39:12 UTC
I am seeing this behavior as well.  It bypasses the error if I uncheck "Compile with .NET Native tool chain" or if I run it in debug mode.  If I build a package and deploy the app, it runs for debug builds, but crashes on startup for release builds.