Lots of users had this issue caused by inspecting linqpad itself when referenced in an assembly.
Changing the serialization method could help, but definitely all of the issues related to serialization must be addressed.
VisualizerObjectSourceException: Type 'LINQPad.ObjectGraph.Formatters.HtmlWriter' in Assembly 'LINQPad, Version=1.0.0.0, Culture=neutral, PublicKeyToken=21353812cd2a2db5' is not marked as serializable.
Module "BridgeVs.DynamicVisualizers.DynamicDebuggerVisualizer", line 18, in Show
Void Show(Microsoft.VisualStudio.DebuggerVisualizers.IDialogVisualizerService, Microsoft.VisualStudio.DebuggerVisualizers.IVisualizerObjectProvider)
Error during LINQPad execution
Lots of users had this issue caused by inspecting linqpad itself when referenced in an assembly. Changing the serialization method could help, but definitely all of the issues related to serialization must be addressed.
Sentry Issue: LINQBRIDGEVS-A