Reporting Services 2005 部署错误:无法加载文件或程序集
我在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
经过 3 天的头痛之后,我发现我在报告部署方面做错了什么(这是我第一次部署 Reporting Services 2005 报告)。
如果其他人感兴趣:您需要将程序集复制到服务器上的这些文件夹(您希望部署的位置):
就是这样。不要忘记更改报告的数据源以使用正确的凭据。
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):
And that's it. Don't forget to change the data source of your report to use the correct credentials.
由于我无法发表任何评论,所以我在这里提出我的一些疑问。
上面的流程和在Sharepoint中部署是一样的吗?
您是否提到“TargetDataSource 文件夹”、“TargetDataSet 文件夹”等?
如果我将程序集文件复制到 SharePoint Server 的以下文件夹路径中,它会起作用吗:
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: