如何从Reporting Services身份验证扩展中获取详细错误

时间:2022-03-31 08:23:32

I'm developing Authentication Extension for SQL Server Reporting Services 2008 R2. It works for accessing report manager or report service using browser but trying to open a report in aspx page using ReportViewer control gives following error:

我正在为SQL Server Reporting Services 2008 R2开发身份验证扩展。它适用于使用浏览器访问报表管理器或报表服务,但尝试使用ReportViewer控件在aspx页面中打开报表会出现以下错误:

The Authentication Extension threw an unexpected exception or returned a value that is not valid: . (rsAuthenticationExtensionError) Get Online Help For more information about this error navigate to the report server on the local server machine, or enable remote errors

身份验证扩展引发了意外异常或返回了无效的值:。 (rsAuthenticationExtensionError)获取联机帮助有关此错误的详细信息,请导航到本地服务器计算机上的报表服务器,或启用远程错误

Is is possible to get detailed information of what happened wrong? I run it on local server machine and custom errors are Off in Report Server's web.config. Nothing is written to Application event log either.

是否有可能获得发生错误的详细信息?我在本地服务器计算机上运行它,并且报表服务器的web.config中的自定义错误已关闭。没有任何内容写入Application事件日志。

1 个解决方案

#1


2  

As per the error message, for more information in these messages you need to enable remote errors for the Report Server:

根据错误消息,有关这些消息的更多信息,您需要为报表服务器启用远程错误:

Enable remote errors.

启用远程错误。

You don't mention what version you're using, so make sure to select the correct version on the MSDN page.

您没有提到您正在使用的版本,因此请确保在MSDN页面上选择正确的版本。

Once this is enabled your error messages will be more verbose. Not sure if a restart of the SSRS service is required or not, though.

启用此功能后,您的错误消息将更加详细。但是,不确定是否需要重新启动SSRS服务。

#1


2  

As per the error message, for more information in these messages you need to enable remote errors for the Report Server:

根据错误消息,有关这些消息的更多信息,您需要为报表服务器启用远程错误:

Enable remote errors.

启用远程错误。

You don't mention what version you're using, so make sure to select the correct version on the MSDN page.

您没有提到您正在使用的版本,因此请确保在MSDN页面上选择正确的版本。

Once this is enabled your error messages will be more verbose. Not sure if a restart of the SSRS service is required or not, though.

启用此功能后,您的错误消息将更加详细。但是,不确定是否需要重新启动SSRS服务。