2011-02-04 26 views
0

我想在我的Windows应用程序中运行SSRS报告。当我尝试运行报告时,我收到“请求失败,HTTP状态401:未经授权。”该报告不会加载到我的应用程序中,但我可以使用Windows凭据登录到报告服务器,并运行所有报告。我尝试从Windows应用运行此报表后,发现报表服务器执行日志中有一条返回成功的条目。Windows窗体应用程序显示SSRS报告

这里是我的应用程序抛出异常: 来源:Microsoft.ReportViewer.Common 方法:GetSecureMethods 日期/时间:上午9时54分二十秒2011年2月4日 消息:请求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(对象发件人,EventArgs的)

任何人有任何想法,我无法在我的应用程序中查看报告?

回答

0

我发现我在我们的报告服务网站上存储了我的windows credentitals。自设置认证以来,我更改了密码,这就是它失败的原因。通过转到控制面板>用户帐户>高级选项卡>管理密码,我找到了存储的凭据。我希望别人认为这有帮助