SSRS未从.NET framework 4.5加载DLL

时间:2013-05-07 11:37:36

标签: reporting-services ssrs-2008 report

我在.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.

有人可以解释有什么问题以及如何解决问题吗?

1 个答案:

答案 0 :(得分:3)

  

此程序集由比当前加载的运行时更新的运行时构建   运行时无法加载。

您的程序集似乎是使用较新版本的.NET Framework (4.5)构建的,该版本未安装在部署解决方案的计算机上。

安装.NET Framework version 4.5或使用服务器上安装的版本构建程序集。