Reporting Service for SQL 2008匿名访问报表方法
1.将AnonymousSecurity.cs编译成Microsoft.Samples.ReportingServices.AnonymousSecurity.dll,拷贝这个DLL到
C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer\bin
2.修改两个web.config配置文件
(位于
C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer和
C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportManager)
将
<authentication mode="Windows" />
<identity impersonate="true"/>
替换为:
<authentication mode="None" />
<identity impersonate="false"/>
3.修改配置文件rereportserver.config
(位于C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer)
将
<Authentication>
<AuthenticationTypes>
<RSWindowsNegotiate/>
<RSWindowsNTLM/>
</AuthenticationTypes>
<EnableAuthPersistence>true</EnableAuthPersistence>
</Authentication>
替换为:
<Authentication>
<AuthenticationTypes>
<Custom/>
</AuthenticationTypes>
<EnableAuthPersistence>true</EnableAuthPersistence>
</Authentication>
在
<Security>
<Extension/>
</Security>
<Authentication>
<Extension/>
</Authentication>
下面添加
<Security>
<Extension />
</Security>
<Authentication>
<Extension />
</Authentication>