when attempting to replace an AxWebBrowserwith WebView2 in an old winform form i get an "invalid window handle 0x80070578" exception.
at first it was due to an older version of Edge but after dating to Canary it was working fine in a standalone project.
async void InitializeAsync()
{
await webView.EnsureCoreWebView2Async(null); //this throws an exception
}
what am i missing?