WebView2Feedback icon indicating copy to clipboard operation
WebView2Feedback copied to clipboard

[Problem/Bug]: The WebView2CompositionControl throws a System.PlatformNotSupportedException with .NET 8

Open cmiles opened this issue 1 year ago • 1 comments

What happened?

In the 1.0.2646-prerelease the Wpf Microsoft.Web.WebView2.Wpf.WebView2CompositionControl throws a System.PlatformNotSupportedException.

System.PlatformNotSupportedException: Operation is not supported on this platform. (0x80131539) at Microsoft.Web.WebView2.Wpf.WebView2CompositionControl.WebView2CompositionControl_Loaded(Object sender, RoutedEventArgs e) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent) at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root) at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)__

Importance

Important. My app's user experience is significantly compromised.

Runtime Channel

Prerelease (Edge Canary/Dev/Beta)

Runtime Version

No response

SDK Version

1.0.2646-prerelease

Framework

WPF

Operating System

Windows 11

OS Version

No response

Repro steps

Use the WebView2CompositionControl in a .NET 8 WPF Application.

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

No, this never worked

Last working version (if regression)

No response

cmiles avatar Aug 02 '24 16:08 cmiles

Does WebView2CompositionControl work on the release SDK?

victorhuangwq avatar Aug 05 '24 23:08 victorhuangwq

This is resolved and should be available in the next pre-release SDK.

champnic avatar Sep 11 '24 21:09 champnic