Skip to content

Critical Error: ArgumentException in SetVirtualHostNameToFolderMapping on app startup (v2.9.0.0 and v2.8) #23

Description

@UncleFi1

Environment

  • OS: Microsoft Windows 11 Pro, 10.0.26200 (build 26200, HAL 10.0.26100.1)
  • Windows display language: Russian
  • System locale: ru-RU (LCID 1049)
  • Culture: ru-RU (LCID 1049)
  • User profile path: C:\Users\makso (Latin, no spaces, no Cyrillic)
  • WebView2 Runtime: 147.0.3912.72
  • Passbolt Desktop: tested both Microsoft Store 2.9.0.0 and GitHub Release 2.8 — same crash
  • Package Status: Ok, SignatureKind: Store, IsDevelopmentMode: False
  • Passbolt server: CE, self-hosted, HTTPS with internal CA (step-ca)

Steps to reproduce

  1. Install Passbolt Desktop App (Microsoft Store 2.9.0.0 or GitHub 2.8 MSIXBundle)
  2. Launch the application

The crash occurs before account kit import, before any user interaction.

Expected

The application launches and prompts for account kit import.

Actual

"Critical Error" dialog appears with the stack trace below. Only action available is "Close Application".

What I tried

  • Microsoft Store app: Advanced options → Repair — no effect
  • Microsoft Store app: Advanced options → Reset — no effect
  • Full uninstall via Get-AppxPackage *passbolt* | Remove-AppxPackage + removing %LOCALAPPDATA%\Packages\Passbolt.Passbolt_knr9d7csm7gng, then reinstall from Store — no effect
  • Downgrade to 2.8 from GitHub Releases — same error
  • WebView2 Runtime is current (147.0.3912.72), user profile path contains no special characters, package Status reports Ok

Stack trace

```
An unexpected error has occurred:

Message: Параметр задан неверно.

System.ArgumentException: Параметр задан неверно.

at System.Runtime.InteropServices.McgMarshal.ThrowOnExternalCallFailed(Int32, RuntimeTypeHandle) + 0x21
at __Interop.ComCallHelpers.Call(__ComObject, RuntimeTypeHandle, Int32, HSTRING, HSTRING, Int32) + 0xc6
at Microsoft.Web.WebView2.Core.ICoreWebView2_3__Impl.Stubs.SetVirtualHostNameToFolderMapping(__ComObject, String, String, CoreWebView2HostResourceAccessKind) + 0xdd
at passbolt.Services.WebviewService.BackgroundWebviewService.d__2.MoveNext() + 0x13f
at passbolt.Controllers.MainController.d__17.MoveNext() + 0x2e1
at passbolt.Controllers.MainController.d__15.MoveNext() + 0x210
at passbolt.MainPage.<Background_NavigationStarting>d__7.MoveNext() + 0x94
```

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