fileloadexception - 无法加载文件或程序集'System.Text.Encoding.CodePages,版本 = 4.1.2.0
问题描述
我收到此错误:
An exception of type 'System.IO.FileLoadException' occurred in Neodynamic.SDK.WebClientPrint.dll but was not handled in user code
Additional information: Could not load file or assembly 'System.Text.Encoding.CodePages, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
我试过的:
下载的示例项目
运行这个文件:
WebClientPrint3WebFormsCS
添加 assemble:
neodynamic.sdk.webclientprint.6.0.0
项目成功运行后,但单击打印时出现错误:An exception of type 'System.IO.FileLoadException' occurred in Neodynamic.SDK.WebClientPrint.dll but was not handled in user code Additional information: Could not load file or assembly 'System.Text.Encoding.CodePages, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
添加最新版本
System.Text.Encoding.CodePages 5.0.0
之后,它也会给出相同的错误Could not load file or assembly 'System.Text.Encoding.CodePages, Version=4.1.2.0
在谷歌上我搜索了 4.1.2.0,但不可用
我也尝试卸载和安装程序集文件,清理构建但也显示相同的错误
如果有人有任何与此相关的解决方案,请提供帮助。
解决方案
推荐阅读
- jquery - 预选相关下拉列表值以便使用 jquery 进行编辑
- jquery - jQuery var 不会保存
- python - 数值输入和二进制分类
- git - 忽略.gitignore中的文件夹,我们放`/`和不放有什么不同?
- sass - bootstrap 5中等效的zf-each-breakpoint是什么?
- php - 我在不使用 group by 的情况下从 MYSQL/PHP 获取一组字段的总和以及这些字段的整个数据集时遇到问题
- mongodb - MongoDB聚合嵌套字段最大值
- angular - 角 10 | 如何在 routerLink 中使用多个路由器参数
- c++ - C++ 输入处理
- javascript - 我应该以什么日期格式存储在 Firestore 中以创建每月的动态报告?