Deepak,
PFA the result below:
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
My thinclient version is 64 bit, so I have downloaded dev environment of Microsoft edge of 64 bit but it its installed in 32 bit folder. Below is code I used to initialize corewebview2 , there is not error but corewebview2 is still null.
var env = await CoreWebView2Environment.CreateAsync(@"C:\Program Files (x86)\Microsoft\EdgeWebView\Application\87.0.664.52", System.IO.Path.GetTempPath(),new CoreWebView2EnvironmentOptions("-incognito"));
await webBrowser1.EnsureCoreWebView2Async(env);
What could be issue? My dll version is 1.0.674 - prerelease. Dev environment version is 87.0.664.52.
Thanks,
Ajay
Deepak,
PFA the result below:
Deepak,
So I will tell exactly what we are trying to do. Once our form is designed, we are creating object of this from in another code and then access webview2 object. I tried by referring webView2 (Suggested name) but still getting same error.
Deepak,
When I create new project as per suggestions its working, but we have a project where we create object of form and access webview2 reference. See the error we are getting in image attached.
Initially the target framework was 2.0 (refer the image), so we changed to 4.7.2. and created a form and getting error as mentioned.
Deepak,
Also to mention, when we are creating new form as in image by clicking on "Add -> New Item".
Deepak,
In our other .cs file we create object of this form and access webview2 reference.