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

上一篇:【MYSQL】MYSQLの環境構築


下一篇:c++将引用作为函数的参数---6