Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug Visualizer on Visual Studio 17.11+ #1718

Open
justingruenberg opened this issue Nov 6, 2024 · 0 comments
Open

Debug Visualizer on Visual Studio 17.11+ #1718

justingruenberg opened this issue Nov 6, 2024 · 0 comments

Comments

@justingruenberg
Copy link

Summary of your issue

After upgrading to Visual Studio 2022 17.11 the debug visualizer no longer works, giving the following error when opening the visualizer:

An unhandled exception of type 'System.NotSupportedException' was thrown by the custom visualizer component in the process being debugged.
Additional information:
BinaryFormatter serialization and deserialization are disabled within this application. See https://aka.ms/binaryformatter for more information.

From the Debug Visualizer docs, it appears that this is a recent change.

Due to the security issues described in the section below, starting with Visual Studio 2022 version 17.11, visualizers won't be able to specify the Legacy formatter policy in the base class' constructor. From now on, visualizers can only use JSON serialization to communicate between the debugger and debuggee-side components.

Environment

Windows 10
Visual Studio 2022 17.11.5

What did you do when you faced the problem?

NA

Example code:

NA

Output:

NA

What did you intend to be?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant