无法加载文件或程序集 'FastReport'

Could not load file or assembly 'FastReport'

报告在我的本地显示正确,但当我上传时出现问题。

could not load file or assembly 'FastReport' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'FastReport' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)

试试这个:

  • 右键单击 Visual Studio 中的 FastReport 项目
  • select 上下文菜单中的属性
  • 转到“签名”选项卡
  • 取消选中为程序集签名