【问题标题】:Windows Form app displaying an SSRS report显示 SSRS 报告的 Windows 窗体应用
【发布时间】: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


    【解决方案1】:

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

    我希望其他人觉得这有帮助

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-02-04
      • 2023-03-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多