在ReportingServices2005中我们需要匿名访问报表的时候,只需要在IIS里面做下简单设置就可以实现,而在ReportingServices2008(R2)中不在依靠IIS,只是占用的还是80端口而已。其实匿名访问有很多中解决办法,譬如:使用ReportViewer控件、与SharePoint集成等等……
在ReportingServices2005中我们需要匿名访问报表的时候,只需要在IIS里面做下简单设置就可以实现,而在ReportingServices2008(R2)中不在依靠IIS,只是占用的还是80端口而已。其实匿名访问有很多中解决办法,譬如:使用ReportViewer控件、与SharePoint集成等等……
下面我介绍SQL团队技术博客所提供的比较彻底而且通用的方法 。(注:修改配置文件前如果害怕出问题请提前备份)
第一步:编译SQL团队所提供的代码并将所生成的Microsoft.Samples.ReportingServices.AnonymousSecurity.dll文件拷贝到SQL Server的安装目录*:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\bin下
第二步:修改Reporting Services\ReportServer 和Reporting Services\ReportManager文件中的web.config文件,替换二者中的节点,将
<authentication mode="Windows" />
替换为
<authentication mode="None" />
第三步:修改Reporting Services\ReportServer修改rereportserver.config把
<Authentication>
修改为
<Authentication>
第四步:修改Reporting Services\ReportServer修改rereportserver.config在
<Security>
节点下,添加
<Security>
到此为止,ReportingServices2008(R2)的匿名访问就大功告成了。
参考资料:
http://blogs.msdn.com/b/jameswu/archive/2008/07/15/anonymous-access-in-sql-rs-2008.aspx (官方教程)
http://lonely7345.cnblogs.com/ (对于AnonymousSecurity.dll有中文解释)
原文链接:http://www.cnblogs.com/zhukuanglong/archive/2011/06/07/2074374.html
【版权声明】
本站部分内容来源于互联网,本站不拥有所有权,不承担相关法律责任。如果发现本站有侵权的内容,欢迎发送邮件至masing@13sy.com 举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。
上一篇: 查询标记为删除但仍未物理删除的数据数