三千轮回 发表于 2021-4-16 17:07:48

未能加载文件或程序集

本帖最后由 Crystal.Li 于 2021-4-16 17:22 编辑

用的是报表设计器
求助:这个是怎么个意思要咋处理啊?



错误明细:
System.IO.FileLoadException: 未能加载文件或程序集“GrapeCity.Documents.Common, Version=3.2.0.560, Culture=neutral, PublicKeyToken=d55d733d2bfd5065”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040)
文件名:“GrapeCity.Documents.Common, Version=3.2.0.560, Culture=neutral, PublicKeyToken=d55d733d2bfd5065”
   在 GrapeCity.ActiveReports.Document.PageDocument..GetService(Type serviceType)
   在 GrapeCity.ActiveReports.Rendering.ReportProcessor..ctor(Report report, ResourceLocator resourceLocator, DataTreeBuilderConfig config, IReadOnlyDictionary`2 customContext, ReportSnapshot snapshot, IServiceProvider services)
   在 GrapeCity.ActiveReports.Document.PageDocument.CreateReportProcessor(ReportSnapshot snapshot)
   在 GrapeCity.ActiveReports.Document.PageDocument.get_ReportProcessor()
   在 GrapeCity.ActiveReports.PageReport.set_ResourceLocator(ResourceLocator value)
   在 GrapeCity.ActiveReports.Design.DdrDesigner.Services.UI.CorePreview.LoadReport(Boolean assertReady)

警告: 程序集绑定日志记录被关闭。
要启用程序集绑定失败日志记录,请将注册表值 (DWORD)设置为 1。
注意: 会有一些与程序集绑定失败日志记录关联的性能损失。
要关闭此功能,请移除注册表值 。


Crystal.Li 发表于 2021-4-16 17:22:29

您好,这个报错信息说的就是引用不匹配导致的。您把项目中报错的引用在Nuget里重新给在项目中引用下就行。

三千轮回 发表于 2021-4-16 17:52:52

删了几个软件搞好了 也不晓得咋回事:dizzy:

Crystal.Li 发表于 2021-4-16 17:56:04

三千轮回 发表于 2021-4-16 17:52
删了几个软件搞好了 也不晓得咋回事

:hjyzw:
页: [1]
查看完整版本: 未能加载文件或程序集