Windows窗体应用程序显示SSRS报告

时间:2011-02-04 15:34:24

标签: c# winforms authentication reporting-services

我正在尝试在我的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(String methodname)    在Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report,String HistoryID)    在Microsoft.Reporting.WinForms.ServerReport.GetExecutionInfo()    在Microsoft.Reporting.WinForms.ServerReport.SetParameters(IEnumerable`1参数)    at InvoiceTracking.ucCustomerLookup.btnViewAll_Click(Object sender,EventArgs e)

任何人都有任何想法,我无权访问我的应用程序中的报告?

1 个答案:

答案 0 :(得分:0)

我发现我已将我的Windows凭证存储在我们的报告服务网站上。我设置了身份验证后更改了密码,这就是失败的原因。我通过转到控制面板>用户帐户>高级选项卡>管理密码找到了存储的凭据。

我希望其他人找到这个有用的

相关问题