当前微软已经不推荐BinaryFormatter serialization and deserialization,并且在以后的版本可能移除这个选项,所以使用时请谨慎。具体原因可参考官方文档 https://aka.ms/binaryformatter for more information。
一下是打开BinaryFormatter serialization and deserialization 的方式
<EnableUnsafeBinaryFormatterSerialization>true</EnableUnsafeBinaryFormatterSerialization>
标签:BinaryFormatter,within,disabled,application,serialization,deserialization From: https://www.cnblogs.com/xinyublog/p/17272991.html