I get this runtime exception while trying to run a simple form with WebView2 control, in Visual Studio 2019 Community Edition (Version 16.5.5) and. System.NullReferenceException: Object reference not set to an instance of an object.Īt .WebView2.OnVisibleChanged(EventArgs e)Īt .OnParentVisibleChanged(EventArgs e)Īt .OnVisibleChanged(EventArgs e)Īt .OnVisibleChanged(EventArgs e)Īt .OnVisibleChanged(EventArgs e)Īt .WmShowWindow(Message& m)Īt .WndProc(Message& m)Īt .WndProc(Message& m)Īt .WmShowWindow(Message& m)Īt .WndProc(Message& m)Īt .ControlNativeWindow.OnMessage(Message& m)Īt .ControlNativeWindow.WndProc(Message& m)Īt .Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)įrom what I see, it does not seem to be the same issues as you listed.
Get the this exception trace when I run in Release mode. Tried this sample given by Microsoft as well. I have posted the question in Stackoverflow too, please check and let me know what the issue might be.
I am getting a crash on Load using WebView2.NET framework is 4.7.2.