I get the following exception when the WebView2 application is launched by more than one user on the server: "Requested resource is in use.(Exception from HRESULT: 0x800700AA)"
The user that launched the application first can still open multiple sessions. How do we allow it to work with multiple users?
The debugger says that the issue is generated by the "EnsureCoreWebView2Async" method. This is how i created the environment:
var env = await Microsoft.Web.WebView2.Core.CoreWebView2Environment.CreateAsync(userDataFolder: CacheDirectory);
await this.EnsureCoreWebView2Async(env);