Skip to content

[Windows] WebView2 Initialization Failed: HRESULT(0x80070005) Access Denied (composeApp:run) #31

@Oriental-Serenity

Description

@Oriental-Serenity

When running the project with ./gradlew :composeApp:run on Windows, the application crashes immediately during WebView2 component initialization with a permission denied error (HRESULT 0x80070005). This blocks the core functionality of the WebView component in the app.

Steps to Reproduce
Environment: Windows 11
Execute command: gradlew :composeApp:run

Exception in thread "AWT-EventQueue-0" io.github.kdroidfilter.webview.wry.WebViewException$WryException: v1=WebView2 error: WindowsError(Error { code: HRESULT(0x80070005), message: " Access Denied." })
at io.github.kdroidfilter.webview.wry.FfiConverterTypeWebViewError.read-MhnMXUE(composewebview_wry.jvm.kt:2058)
at io.github.kdroidfilter.webview.wry.FfiConverterTypeWebViewError.read-MhnMXUE(composewebview_wry.jvm.kt:2047)
at io.github.kdroidfilter.webview.wry.FfiConverter.liftFromRustBuffer(composewebview_wry.jvm.kt:222)
at io.github.kdroidfilter.webview.wry.Composewebview_wry_jvmKt.createWebview-R4QgNNg(composewebview_wry.jvm.kt:2798)
at io.github.kdroidfilter.webview.wry.NativeBindings.createWebview-gnehgXw(WryWebViewPanel.kt:706)
at io.github.kdroidfilter.webview.wry.WryWebViewPanel.createIfNeeded(WryWebViewPanel.kt:351)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions