-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebView2 Initialization Error in WinPE x64 #4951
Comments
See #4293 |
Is the log file created ( |
|
Did you try setting Documentation reference: https://www.chromium.org/for-testers/enable-logging/
|
@icnocop i tried with --log-file=X:\logfile.txt |
Are the WebView2 runtime libraries in the "WebView2x64" folder?
But you mentioned:
|
I did copy the structure and forgot to mention the binaries which i have added from webview2 Fixed Runtime
Please let me know, if i need to make any changes to the folder structure. |
You can try to hook into the BlazorWebViewInitializing event and try to enable logging in the CoreWebView2 environment before the WebView2 is initialized and then you can also try to hook into the BlazorWebViewInitialized event to log the details of the initialized CoreWebView2 environment. |
Discussed in #4947
Originally posted by Abithk7-1 November 26, 2024
I'm experiencing an issue with WebView2 initialization in our WinPE x64 environment.
The error I'm encountering is:
System.Runtime.InteropServices.COMException (0x80080005): Server execution failed (Exception from HRESULT: 0x8008005 (CO_E_SERVER_EXEC_FAILURE)) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at Microsoft.Web.WebView2.Core.CoreWebView2Environment.d__102.MoveNext()
Environment:
WinPE x64
Framework: 4.8.1
I'm using the following nuget libraries:
The WebView2 Fixed Version Runtime binaries I'm using is:
My code for initializing WebView2 is as follows:
string exeLocation = AppDomain.CurrentDomain.BaseDirectory;
string webView2Folder = Path.Combine(exeLocation, "WebView2x64");
string logFilePath = Path.Combine(exeLocation, "WebView2Log.txt");
string userDataFolder = Path.Combine(exeLocation, "UserData");
The folder structure for the WebView2 libraries is as follows:
<myApp>
\Microsoft.Web.WebView2.Core.dll
\Microsoft.Web.WebView2.Winforms.dll
\Microsoft.Web.WebView2.WPF.dll
\runtimes
\win-arm64\native\WebView2Loader.dll (arm64)
\win-x64\native\WebView2Loader.dll (x64)
\win-x86\native\WebView2Loader.dll (x86)
The text was updated successfully, but these errors were encountered: