MicrosoftEdge / MicrosoftEdge/WebView2Feedback

108.0.1462.54 doesn't work on SERVER 2012 R2 RDS

Open
#3,084 8 comments 0 reactions 1 assignee View on GitHub

@david-risney is already working on this.

Since Dec 27, 2022.

bug
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Description

Webview2 Runtime 108.0.1462.54 fails on Windows 2012 R2 RDS servers (works great on newer OSs)
CoreWebView2InitializationCompletedEventArgs.IsSuccess = FALSE on Windows 2012 R2 RDS servers
The group or resource is not in the correct state to perform the requested operation. (Exception from HRESULT: 0x8007139F)
107.0.1418.62 works on 2012 R2 RDS

Stack:
System.Runtime.InteropServices.COMException (0x8007139F): The group or resource is not in the correct state to perform the requested operation. (Exception from HRESULT: 0x8007139F)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at Microsoft.Web.WebView2.Core.CoreWebView2Environment.d__80.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.Web.WebView2.WinForms.WebView2.d__24.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

See attached project and comments inside (remember to restore nuget package before building)

  1. build projects run exe from debug folder .. no issues displaying microsoft.com site.

  2. copy debug folder to Windows 2012 R2 server with WebView2 Runtime 108.0.1462.54 installed.
    CoreWebView2InitializationCompletedEventArgs.IsSuccess returns false and WebView2 is useless :<

  3. I rolled back all the recent Dec 2022 updates servers received (no change) .
    I was able to "Fix" by restoring a backup of "C:\Program Files (x86)\Microsoft\EdgeWebView\Application\107.0.1418.62"
    into the "C:\Program Files (x86)\Microsoft\EdgeWebView\Application\108.0.1462.54" folder.
    on the 2012 R2 server so I'm semi-confident this is a breaking change between 107 and 108.

Additional context
We still have a few locations who refuse to upgrade their 2012 R2 until official end of life.
In one Location App works when run under administrator login but not under user's (non admin rights) login.
Initially I thought it was a profile/permission/registry issue. until following day 3 other locations called in with the issue/blank webview2 forms.

Webview2012r2.zip

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.