Reporting Services 2005 部署错误:无法加载文件或程序集

发布于 2024-08-29 11:57:06 字数 997 浏览 3 评论 0原文

我在 Reporting Services 2005 上制作了一份使用外部程序集的报表,我将该程序集添加到了项目中:

报表 - 报表属性 - 引用

我还将程序集复制到了以下文件夹:

  • C:\Program Files\ Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\bin
  • C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies
  • C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies

我的报告工作正常即使在 Visual Studio Designer 中的预览中,我也按了 F5,但是当我尝试部署报表(右键单击 - 部署)并指向远程 Reporting Services 服务器(http://myserver/reportserver) 我收到错误:

错误 3 加载代码模块时出错:'XXXXXXXXXXXX,Version=1.0.0.0,Culture=neutral,PublicKeyToken= dc704fc78adc7af4'。详细信息:无法加载文件或程序集“XXXXXXXX,版本=1.0.0.0,文化=中性,PublicKeyToken=dc704fc78adc7af4”或其依赖项之一。系统找不到指定的文件。 c:\MyReport\Report.rdl 0 0

(注意:我用 XXXXXXX 替换了程序集的名称,并更改了报告的路径。考虑到文件“c:\MyReport\Report.rdl”已经是在那里,这是我正在处理的报告)。

希望您能帮助我解决这个问题以部署到我的远程报告服务器。

谢谢。

I made a report on Reporting Services 2005 which consumes an external assembly, I added that assembly to the project:

Report - Report Properties - References

I also copied the assembly to the folders:

  • C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\bin
  • C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies
  • C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies

My report works fine it I hit F5, even on the Preview in Visual Studio Designer, but when I try to deploy the report (right click - Deploy) and point to a remote Reporting Services Server (http://myserver/reportserver) I got the error:

Error 3 Error while loading code module: ‘XXXXXXXXXXXX, Version=1.0.0.0, Culture=neutral, PublicKeyToken=dc704fc78adc7af4’. Details: Could not load file or assembly 'XXXXXXXX, Version=1.0.0.0, Culture=neutral, PublicKeyToken=dc704fc78adc7af4' or one of its dependencies. The system cannot find the file specified. c:\MyReport\Report.rdl 0 0

(NOTE: I replaced the name of the assembly with XXXXXXX and changed the path of my report. Consider that the file "c:\MyReport\Report.rdl" is already there, it's the report I'm working on).

Hope you can help me solve this problem to deploy to my remote reporting server.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

相对绾红妆 2024-09-05 11:57:06

经过 3 天的头痛之后,我发现我在报告部署方面做错了什么(这是我第一次部署 Reporting Services 2005 报告)。

如果其他人感兴趣:您需要将程序集复制到服务器上的这些文件夹(您希望部署的位置):

  • C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ ReportServer\bin
  • C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies
  • C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies

就是这样。不要忘记更改报告的数据源以使用正确的凭据。

After 3 days of headaches, I found out what I was doing wrong with the report deploy (This was my first time deploying a reporting services 2005 report).

If anyone else is interested: you need to copy the assembly to these folders ON THE SERVER (where you wish to deploy):

  • C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\bin
  • C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies
  • C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies

And that's it. Don't forget to change the data source of your report to use the correct credentials.

可是我不能没有你 2024-09-05 11:57:06

由于我无法发表任何评论,所以我在这里提出我的一些疑问。

上面的流程和在Sharepoint中部署是一样的吗?

您是否提到“TargetDataSource 文件夹”、“TargetDataSet 文件夹”等?

如果我将程序集文件复制到 SharePoint Server 的以下文件夹路径中,它会起作用吗:

  • C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Svices\ReportServer\bin
  • C:\Program Files\Microsoft Visual Studio 8Common7\IDE \PrivateAssemblies
  • C:\Program Files\Microsoft Visual tudio 8\Common7\IDE\PublicAssemblies

As I am not able to place any comment, I am putting my few doubts here.

Is the above process same as deployment in Sharepoint?

Are you mentioning the "TargetDataSource Folder", "TargetDataSet folder" and so on?

Will it work if I would copy the assembly file in below folder path of SharePoint Server:

  • C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Svices\ReportServer\bin
  • C:\Program Files\Microsoft Visual Studio 8Common7\IDE\PrivateAssemblies
  • C:\Program Files\Microsoft Visual tudio 8\Common7\IDE\PublicAssemblies
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文