Details about the Fixed Version runtime distribution mode #3926
Replies: 3 comments
-
Hey @JaseRandall! Can you confirm that the Fixed Version binaries are where you expect them to be on the machine? Have you followed these steps, specifically Step 4, to point the WebView2 to use the Fixed Version binaries? Thanks! |
Beta Was this translation helpful? Give feedback.
-
hey, var options = new Microsoft.Web.WebView2.Core.CoreWebView2EnvironmentOptions("--disable-web-security");
var browserFolder = Path.Combine(RootDir,BrowserFolder); //C:\Users\Administrator\AppData\Local\ERPBrowser\Plugin
var userDataFolder = Path.Combine(RootDir, UserDataFolder); //C:\Users\Administrator\AppData\Local\ERPBrowser\Cache
if (!Directory.Exists(userDataFolder))
{
Directory.CreateDirectory(userDataFolder);
}
var env = await Microsoft.Web.WebView2.Core.CoreWebView2Environment.CreateAsync(browserFolder, userDataFolder, options); // exception here
await WebViewBrowser.EnsureCoreWebView2Async(env); |
Beta Was this translation helpful? Give feedback.
-
Hey @ryanryanorient - Can you confirm that the browserFolder path is pointing to a directory on your machine that has the FixedRuntime in it? If you put the fixed runtime in a different directory does that work? Is "RootDir" the exact same in both the Winforms and WPF cases? |
Beta Was this translation helpful? Give feedback.
-
Posted by @JaseRandall in MicrosoftDocs/edge-developer#1413
This was related to this documentation page: https://docs.microsoft.com/en-us/microsoft-edge/webview2/concepts/distribution
Posting here as this issue requires someone with WebView2 technical knowledge to help if possible. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions