我在.NET Framework 4.5中创建了 .dll 并将其放入SQL Server - Reporting Services - Report Server - Bin
文件夹,当从开发人员计算机部署报告时,我收到此错误:
Error while loading code module: ‘{namespace}, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’.
Details: Could not load file or assembly '{namespace}, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
有人可以解释有什么问题以及如何解决问题吗?
答案 0 :(得分:3)
此程序集由比当前加载的运行时更新的运行时构建 运行时无法加载。
您的程序集似乎是使用较新版本的.NET Framework (4.5)
构建的,该版本未安装在部署解决方案的计算机上。
安装.NET Framework version 4.5
或使用服务器上安装的版本构建程序集。