WebView2 on OE 11.7.15

Hi everybody,


Win 10 x64, OE 12.8.11 / OE 11.7.15


I have a small program which uses Microsoft WebView2. Thanks to one of the posts on progress community (Progress Customer Community) I managed to make it work. It runs fine on OE 12.8, but throws a compile-error on 11.7. at the following line of code:

Code:
Environment = Microsoft.Web.WebView2.Core.CoreWebView2Environment:CreateAsync("":U, "C:\Temp":U, EnvOptions):Result.

The error is: System.BadImageFormatException…. Full error is attatched.

Without this line of code the programm compiles and works, but the contens of the website is not displayed in WebView2, it stays empty.

Any ideas ?
 

Attachments

  • Oe117-errort.png
    Oe117-errort.png
    18.7 KB · Views: 4
I cannot help with the WebView2 component but once had something similar with different versions of Progress and will mention it if this could maybe be the same.

A .NET component worked fine under Progress 11 but when had to run under version 10.2B got the System.BadImageFormatException error. Discovered it was due to the .NET component being .NET 4.0 whereas 10.2B could only access up to .NET 3.0. I first wondered if it could be the same here but according to this 12.8.11 and 11.7.15 can both access up to .NET 4.8:


Not only that, as you point out everything else works and it is just a single line of code that does not work when 11.7.15 so almost rules that out.

Does this give the same value for 12.8.11 and 11.7.15?:

Code:
MESSAGE ".NET version is" System.Environment:Version:ToString() VIEW-AS ALERT-BOX INFORMATION.
 
Back
Top