Skip to content

[Bug]: Running in vs2026 gives The handle is invalid #3257

@jgerits

Description

@jgerits

Version

1.56.0

Steps to reproduce

When running playwright in vs 2026 we get the handle is invalid error.

var playwright = await Playwright.CreateAsync();
var context = await playwright.Chromium.LaunchAsync();
var pp = await context.NewPageAsync();
await pp.GotoAsync("https://example.com");

gives this error on the CreateAsync.

Expected behavior

playwright should start

Actual behavior

we get the handle is invalid error

Additional context

the same project works in vs2022

Environment

- Operating System: [windows 11]
- CPU: [AMD 64]
- Browser: [All]
- .NET Version (TFM): [net8.0]
- Other info: VS 2026

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