SSRS匿名访问

---本人数据库是SqlServer2008 R2 匿名访问Reporting Service 2008

我想通过访问Url的方式,把部署到Sql Server  Reporting Service 上的报表集成到Web应用中,但是直接访问地址总是要提示输入凭证,在网上找了几种方法都差不多,摘录一个: ReportingService是个很强大的报表引擎!但实现Reporting Service2008 的匿名访问是件比较费劲的事情,网上提供的方法挺多的,但都不适用于使用URL方式访问。

RS2005依赖于IIS,可使用IIS的匿名账户进行匿名登录访问。而RS2008不依赖于IIS,即无法通过IIS的匿名账户进行访问,也就是你访问需要输入有效的用户名及密码。

 

------下面是匿名访问Reporting Service 2008的步骤 1、找到RS2008的安装目录,如果你是64位系统,并且安装的是64位的MSSQL2008,并且是默认路径安装,请移步文件夹:C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services  否则请根据你自己的设置去找。

2、备份文件(注意文件夹):

①\ReportServer\web.config

②\ReportServer\rsreportserver.config

③\ReportManager\Web.config

3、修改①、③两个文件

查找:

<authentication mode="Windows" /> <identity impersonate="true"/> 替换为:

<authentication mode="None" /> <identity impersonate="false"/> 4、修改②文件

查找:  <AuthenticationTypes>     <RSWindowsNegotiate/>     <RSWindowsNTLM/>  </AuthenticationTypes> 替换为:  <AuthenticationTypes>     <Custom/>  </AuthenticationTypes> 查找:  <Security>    <Extension Name="Windows" Type="Microsoft.ReportingServices.Authorization.WindowsAuthorization, Microsoft.ReportingServices.Authorization"/>  </Security>  <Authentication>    <Extension Name="Windows" Type="Microsoft.ReportingServices.Authentication.WindowsAuthentication, Microsoft.ReportingServices.Authorization"/>  </Authentication> 替换为:  <Security>    <Extension Name="None" Type="Microsoft.Samples.ReportingServices.AnonymousSecurity.Authorization, Microsoft.Samples.ReportingServices.AnonymousSecurity" />  </Security>  <Authentication>    <Extension Name="None" Type="Microsoft.Samples.ReportingServices.AnonymousSecurity.AuthenticationExtension, Microsoft.Samples.ReportingServices.AnonymousSecurity" />  </Authentication>

5、下载文件:Microsoft.Samples.ReportingServices.AnonymousSecurity.dll 解压保存到目录“\ReportServer\bin\”文件夹下。

到此为止配置结束,重启RS服务即可。

该文引自:http://tedeum.iteye.com/blog/1208232 第5部的文件下载路径:http://files.cnblogs.com/files/xymBlog/%E5%8C%BF%E5%90%8D%E8%AE%BF%E9%97%AEReportingService2008.rar

转载于:https://www.cnblogs.com/xymBlog/p/4583246.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值