【发布时间】:2011-02-04 15:34:23
【问题描述】:
我正在尝试在我的 Windows 应用程序中运行 SSRS 报告。当我尝试运行报告时,我收到“请求失败,HTTP 状态 401:未授权”。该报告不会加载到我的应用程序中,但我可以使用我的 Windows 凭据登录到我的报告服务器并正常运行所有报告。我还发现,如果在尝试从 Windows 应用程序运行此报告后查看报告服务器执行日志,则有一个返回成功的条目。
这是我的应用程序抛出的异常: 来源:Microsoft.ReportViewer.Common 方法:GetSecureMethods 日期/时间:2011 年 2 月 4 日上午 9:54:20 消息:请求失败,HTTP 状态 401:未经授权。 堆栈跟踪:在 Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.GetSecureMethods() 在 Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.IsSecureMethod(字符串方法名称) 在 Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(字符串报告,字符串 HistoryID) 在 Microsoft.Reporting.WinForms.ServerReport.GetExecutionInfo() 在 Microsoft.Reporting.WinForms.ServerReport.SetParameters(IEnumerable`1 参数) 在 InvoiceTracking.ucCustomerLookup.btnViewAll_Click(Object sender, EventArgs e)
有人对我无法在我的应用程序中查看报告的地方有任何想法吗?
【问题讨论】:
标签: c# winforms authentication reporting-services