Skip to content

In a WPF project using BlazorWebView2, when using saveFileDialog on a Razor page, an exception is thrown after waiting about 30 seconds after the dialog pops up: System.Runtime.InteropServices.SEHException: "External component has thrown an exception." #11126

@mmgdh

Description

@mmgdh

Description

In a WPF project using BlazorWebView2, when using saveFileDialog on a Razor page, if the dialog is open for about 30 seconds, it throws an exception System.Runtime.InteropServices.SEHException: "External component has thrown an exception." The demo project is located at this address:
https://github.com/mmgdh/TestFileDialog.

Image

Reproduction Steps

1.Click Button “Throw Error Wait 30 Seconds” Invoke OpenFileDialog
2.Wait for a while maybe 30 Seconds
3.Throw Error:System.Runtime.InteropServices.SEHException: "External component has thrown an exception."

Expected behavior

OpenFileDialog and SaveFileDialog and other file dialog windows can stay open without crashing.

Actual behavior

Throw Error:System.Runtime.InteropServices.SEHException: "External component has thrown an exception."

Regression?

Always

Known Workarounds

No response

Impact

No response

Configuration

No response

Other information

No response

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