question

chandankesharwani-7005 avatar image
0 Votes"
chandankesharwani-7005 asked DanielZhang-MSFT edited

System.NotImplementedException

I am using Webview in windows form application, in which i am using pre-release version of webview i.e 1.0.865 for DownloadStarting event handler
So i installed microsoft edge runtime installer of version 90.0.818.56 and also 89.0.774.77,

But i am getting exception of System.NotImplementedException

"Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Experimental2.
This may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using.
For instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime.
Or, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime."


Thanks for the help

windows-forms
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

DanielZhang-MSFT avatar image
0 Votes"
DanielZhang-MSFT answered DanielZhang-MSFT edited

Hi chandankesharwani-7005,
Please try the following steps.
1. Download the Microsoft Edge Canary (64-bit) version and install it.
2.Uninstall the WebView2 Runtime.
3. Install the Microsoft.Web.WebView2 0.9.515-prerelease package from the nuget package on Visual Studio 2017 or higher.
4. Make your application target the x86 platform.
More details please refer to this document.
And here is a related issue you can refer to.
Best Regards,
Daniel Zhang


If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.