Skip to content

[bug] The Tauri App fails to create a EBWebView folder under the APPDATA/Local/{tauri-app-identifier}/ . leading to the issue in which the app window opens and closes within a split second if you try to run it. WindowsError(Error { code: HRESULT(0x80070002) #12787

@Skystapper

Description

@Skystapper

Describe the bug

I have been making a next js project in my pc and I used Tauri to pack it as exe. On the first time everything went smoothly. Later that day too, I was able to make few changes in app and repack it. though I accidentally I had uninstalled my edge browser and then it kept saying that it couldn't find webview2. I reinstalled the standalone version of webview and it was easily able to detect and build the final exe file.

The problem occurred when I was running the exe file and it kept saying that

[tauri_runtime_wry][ERROR] failed to create webview: WebView2 error: WindowsError(Error { code: HRESULT(0x80070002), message: "The system cannot find the file specified." })

the EBWebView folder that gets created along with the logs folder was also missing, but I was easily able to see that WebView was already there, even the Edge was also reinstalled. I even tried embedding the webview bootstrapper in the application but it was no different. I tried sending the exe file in other people's pc and they were able to run it without any issue, now the problem maybe un my pc but I want to know the solution of this problem so I don't have to turn towards my last resort which is resetting my PC.

Reproduction

No response

Expected behavior

No response

Full tauri info output

- OS: Windows 10.0.26100 x86_64 (X64)
    ✔ WebView2: 133.0.3065.69
    ✔ MSVC: Visual Studio Enterprise 2022
    ✔ rustc: 1.85.0 (4d91de4e4 2025-02-17)
    ✔ cargo: 1.85.0 (d73d2caf9 2024-12-31)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 20.14.0
    - npm: 10.9.2

[-] Packages
    - tauri 🦀: 2.2.5
    - tauri-build 🦀: 2.0.5
    - wry 🦀: 0.48.1
    - tao 🦀: 0.31.1
    - @tauri-apps/api : 2.2.0
    - @tauri-apps/cli : 2.2.7

[-] Plugins
    - tauri-plugin-log 🦀: 2.2.1
    - @tauri-apps/plugin-log : 2.2.1

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../out
    - devUrl: http://localhost:3000/
    - framework: React (Next.js)
    - bundler: Webpack

Stack trace


Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions