解决办法:把工程目标生成平台改为x86 不要用anycpu 问题解决 2023-4-21 新增解决 在运行程序config文件中增加 <startup useLegacyV2RuntimeActivationPolicy="true">