UncleWael 1 Posted Tuesday at 03:08 PM Hello All, I'm trying to use TEdgebrowser (or FMX TWebbrowser with EdgeOnly WindowsEngine), and it keeps failing to initilize Edge Engine ! I've downloaded EdgeView2 SDK from GetIt manager , set BrowserExecutableFolder to the path of msedgewebview2.exe , and have WebView2Loader.dll either in path or in application deploy folder. I only get error messages either "Failed to initialize the Edge loader" or "Failed to initialize Edge: the request is not supported" ! Has anyone properly configured a working Edge webview2 environment before ? My setup : Windows 11 , Embarcadero Delphi 12.1, EdgeView2 SDK 1.0.2739.1, EdgeCore 131.0.2903.112 The test is performed using the sample at \Embarcadero\Studio\23.0\Samples\Object Pascal\VCL\WebBrowser\Edge Regards. Share this post Link to post
Olli73 6 Posted Tuesday at 04:23 PM Is 32 / 64 bit matching between your app and webview? 1 Share this post Link to post
PeaShooter_OMO 11 Posted Wednesday at 06:38 AM (edited) 15 hours ago, UncleWael said: Has anyone properly configured a working Edge webview2 environment before ? Yes. I do not set BrowserExecutableFolder at all and I make sure WebView2Loader.dll is located in the same folder as my project executable. I use Delphi 11 As a side note; above the BrowserExecutableFolder property declaration in the Vcl.Edge source it says "If the path contains \Edge\Application\ then the WebView2 creation will fail". Edited Wednesday at 06:41 AM by PeaShooter_OMO Share this post Link to post
Der schöne Günther 316 Posted Wednesday at 07:12 AM 15 hours ago, UncleWael said: EdgeView2 SDK 1.0.2739.1, EdgeCore 131.0.2903.112 I don't know what this is exactly, but you will need the WebView2 runtime from here: https://developer.microsoft.com/de-de/microsoft-edge/webview2/ Share this post Link to post
Brandon Staggs 295 Posted Wednesday at 06:44 PM It does work. I can't suggest what is wrong with your configuration, but you can definitely expect it to work -- we have it in production for a few years now with no issues. Share this post Link to post
UncleWael 1 Posted yesterday at 01:07 AM 18 hours ago, PeaShooter_OMO said: Yes. I do not set BrowserExecutableFolder at all and I make sure WebView2Loader.dll is located in the same folder as my project executable. I use Delphi 11 As a side note; above the BrowserExecutableFolder property declaration in the Vcl.Edge source it says "If the path contains \Edge\Application\ then the WebView2 creation will fail". Ok, I've cleared unnecessary properties like BrowserExecutableFolder and userdatafolder. after your comment i figured out that BrowserExecutableFolder affects only the fixed distribution deployment . so , i cleared it . but still no effect : the Edge loader is failed to initialize . Sometimes the error is "WebView2Loader External Exception c06d007f" Share this post Link to post
UncleWael 1 Posted yesterday at 01:08 AM 17 hours ago, Der schöne Günther said: I don't know what this is exactly, but you will need the WebView2 runtime from here: https://developer.microsoft.com/de-de/microsoft-edge/webview2/ Yes ofcourse. It is installed as I mentioned above. 17 hours ago, Der schöne Günther said: I don't know what this is exactly, but you will need the WebView2 runtime from here: https://developer.microsoft.com/de-de/microsoft-edge/webview2/ Share this post Link to post
PeaShooter_OMO 11 Posted yesterday at 06:45 AM (edited) Attached you wll find a sample project that works for me. It is a 32bit project. My Dev machine is Windows 10 with Delphi 11. I have a Windows 7 (64bit OS) machine around. It did not have Edge or the WebView2 Runtime installed on it and WebView2Loader.dll did not exist on it. I installed the runtime (32bit version) on the Win7 machine using what I downloaded from https://www.catalog.update.microsoft.com/Search.aspx?q=webview2 Runtime version 109 Windows 7 is only supported by Runtime 109 and older. For instructions on how to get the Runtime installed from the update catalog file: Quote extract .exe file to a folder using 7zip .. if x64 then find MicrosoftEdge_X64_109.0.1518.140.exe.{0D50BFEC-CD6A-4F9A-964C-C7416E3ACB10} file and rename it to MicrosoftEdge_X64_109.0.1518.140.exe then run command line MicrosoftEdge_X64_109.0.1518.140.exe --msedgewebview --system-level .. same for x86 find MicrosoftEdge_X86_109.0.1518.140.exe.{0D50BFEC-CD6A-4F9A-964C-C7416E3ACB10} file and rename it to MicrosoftEdge_X86_109.0.1518.140.exe then run command line MicrosoftEdge_X86_109.0.1518.140.exe --msedgewebview --system-level After the installation the WebView2Loader.dll still did not exist on the machine. I copied the WebView2Loader.dll I found in my Delphi installation under c:\Program Files (x86)\Embarcadero\Studio\22.0\Redist\win32\ to the executable folder and copied the EXE and DLL to the Win7 machine. It works there as well as on my Win10 machine. The runtime is important as it does not work without it. EdgeBrowserSample.zip Edited yesterday at 06:48 AM by PeaShooter_OMO Share this post Link to post
UncleWael 1 Posted 19 hours ago Thank you all . I've found the issue and it was in the installation of the webview2 runtime , not in Delphi. Now all is working as it should be. 1 Share this post Link to post
PeaShooter_OMO 11 Posted 4 hours ago 15 hours ago, UncleWael said: it was in the installation of the webview2 runtime Can you elaborate? Share this post Link to post