Skip to content

CreateCoreWebView2EnvironmentWithOptions silently fails #124

Closed
@mseddon

Description

@mseddon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions