playwright-dotnet icon indicating copy to clipboard operation
playwright-dotnet copied to clipboard

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

Open jgerits opened this issue 1 month ago • 2 comments

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

jgerits avatar Nov 19 '25 14:11 jgerits

After restart it works now.

jgerits avatar Nov 20 '25 07:11 jgerits

Still exist but only when you run the code in debug mode.

jgerits avatar Nov 20 '25 07:11 jgerits