MicrosoftEdge / WebView2Samples

Microsoft Edge WebView2 samples
863 stars 466 forks source link

CreateCoreWebView2EnvironmentWithOptions silently fails #124

Closed mseddon closed 2 years ago

mseddon commented 2 years ago

I followed the instructions in the guide for the Win32_GettingStarted project here, but the window opens with a blank white content area. On further investigation, it seems CreateCoreWebView2EnvironmentWithOptions is silently failing. Setting a breakpoint within the callback never gets hit, and within the WndProc, webviewController remains null.

Are there any obvious things I should check that spring to mind which could be causing this for me, or at least a way to access an error code I can look into?

Running Windows 10, with Visual Studio 2019.

WIL: 1.0.220201.1 WebView2: 1.0.1150.38

mseddon commented 2 years ago

Durp. I had forgotten to install the WebView2 runtime. Apologies.