Reporting Services 2012 部署错误:“加载代码模块时出错" [英] Reporting Services 2012 deploy error: "Error while loading code module"

查看:50
本文介绍了Reporting Services 2012 部署错误:“加载代码模块时出错"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我第一次尝试使用自定义程序集将报告部署到服务器.我可以在没有程序集的情况下部署相同的报告.我正在使用 Reporting Services 2012 (Visual Studio 2010) 来部署报告.

I am trying to deploy a report to the server with a custom assembly for the first time. I am able to deploy the same report without the assembly. I am using Reporting Services 2012 (Visual Studio 2010) to deploy the report.

这是我尝试部署时收到的完整错误消息:

Here is the full error message I get when I try to deploy:

加载代码模块时出错:‘SGA.Reporting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’.详细信息:无法加载文件或程序集SGA.Reporting,Version=1.0.0.0,Culture=neutral,PublicKeyToken=null"或其依赖项之一.系统找不到指定的文件.

Error while loading code module: ‘SGA.Reporting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’. Details: Could not load file or assembly 'SGA.Reporting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

我已经阅读了几篇关于同一问题的帖子,但没有一篇文章解决了我的问题.这是一个为 .NET Framework 4.0,AnyCPU 编译的 dll.

I have read several posts on this same issue, not of which have solved my problem. It's a dll compiled for .NET Framework 4.0, AnyCPU.

在我正在部署的本地 PC 上,我已将 dll 复制到所有这些文件夹中:C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssembliesC:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssembliesC:\Windows\Microsoft.NET\Framework\v4.0.30319C:\Windows\Microsoft.NET\Framework64\v4.0.30319

On my local PC where I'm deploying from I've copied my dll to all these folders: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies C:\Windows\Microsoft.NET\Framework\v4.0.30319 C:\Windows\Microsoft.NET\Framework64\v4.0.30319

在我部署到的服务器上,我已将我的 dll 复制到所有这些文件夹中:C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssembliesC:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssembliesC:\Windows\Microsoft.NET\Framework\v4.0.30319C:\Windows\Microsoft.NET\Framework64\v4.0.30319

On the server I'm deploying to I've copied my dll to these all these folders: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies C:\Windows\Microsoft.NET\Framework\v4.0.30319 C:\Windows\Microsoft.NET\Framework64\v4.0.30319

有什么想法吗?

推荐答案

原来我需要将 dll 复制到报表服务器上的这个文件夹中:%ProgramFiles%\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\bin

It turned out I needed to copy the dll to this folder on the report server: %ProgramFiles%\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\bin

如果您只想将报表部署到报表服务器,那么这是报表服务器上唯一需要它的地方.

That is the only place it is needed on the report server if you just want to deploy reports to it.

这篇关于Reporting Services 2012 部署错误:“加载代码模块时出错"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆