Skip to content

[Problem/Bug]: We are facing an issue in webview2 while opening the side panel from the compose window from outlook. #5268

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

Open
ReddyBhargavi18 opened this issue Jun 6, 2025 · 0 comments
Assignees
Labels
bug Something isn't working regression Something used to work but doesn't anymore

Comments

@ReddyBhargavi18
Copy link

ReddyBhargavi18 commented Jun 6, 2025

We are using the outlook com add-in from last 4 years we didn't change any code, after updating the webview2 version we are facing the issue (compose window side panel is opening as black page).

webview Old Version - 136.X.XXX.XX (While using this version the side panel of compose window has opened correctly, we didn't face any issue in the old version)
webview New Version - 137.X.XXX.XX (While using this version the side panel of compose window is not loaded it is showing the Blank screen)

Below is the exception we are facing while running the outlook com add-in.

[class]:<InitializeWebView2Async>d__2 [method]:MoveNext [message]:The group or resource is not in the correct state to perform the requested operation. (Exception from HRESULT: 0x8007139F) [Stack]: at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at Microsoft.Web.WebView2.Core.CoreWebView2Environment.<CreateCoreWebView2ControllerAsync>d__15.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Web.WebView2.WinForms.WebView2.<InitCoreWebView2Async>d__25.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at PrismSTOutlookAddin.SidePanel2.<InitializeWebView2Async>d__2.MoveNext()

Sample code we are using for com add-in:

public string APPDATA_FOLDER_WEBVIEW_PATH = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\Datazoic"; var env = await CoreWebView2Environment.CreateAsync(null, Globals.ThisAddIn.APPDATA_FOLDER_WEBVIEW_PATH,); - **This is the line we are getting above exception.** await this.webBrowser2.EnsureCoreWebView2Async(); this.webBrowser2.CoreWebView2.Navigate(Globals.ThisAddIn.baseURL + "outlook_smartsend.html?rnum=" + DateTime.Now.Ticks.ToString());

More information regarding the issue.
We are opening side panel from inbox and compose window. While opening outlook inbox side panel opens correctly and no issues. After that when we open compose window then open side panel the above exception is throwing. Previously same set of code working on older version of webview2 runtime, but after upgrade webview 2 runtime from (136.X.XXX.XX) to (137.X.XXX.XX) side panel is not opening in compose window. This is more important issue bcoz we have lot of clients are using this plugin and they start compiling last 2 week frequently after updated webview2 runtime. Please take this immediate solution and make sure new upgrade should not break any existing functionality.
APPDATA_FOLDER_WEBVIEW_PATH this is the directory we are using for both side panel.

Below is the Screenshot of the blank page:

Image

Importance

Blocking. My app's basic functions are not working due to this issue.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

.net V4.7.2

SDK Version

No response

Framework

----Please select----

Operating System

Windows 11

OS Version

No response

Repro steps

  1. Com add-in plugin opening side panel from inbox and compose window.
  2. After updating the webview2 runtime version open the outlook inbox side panel is opening.
  3. Then go to compose window open side panel the page is not loading it is showing blank

Repros in Edge Browser

outlook com add-in

Regression

Regression in newer Runtime

Last working version (if regression)

136.X.XXX.XX

@ReddyBhargavi18 ReddyBhargavi18 added the bug Something isn't working label Jun 6, 2025
@github-actions github-actions bot added the regression Something used to work but doesn't anymore label Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression Something used to work but doesn't anymore
Projects
None yet
Development

No branches or pull requests

2 participants