【发布时间】:2012-11-27 15:55:50
【问题描述】:
我正在使用 Asp.net 和 c# 开发一个 Web 应用程序。要生成报告,我正在使用 SQL Server Business Intelligence Development Studio(ssrs)。我收到类似 “请求失败,http 状态 401 未授权” 之类的错误,请帮助我 提前致谢 实际错误如下
ex = {"请求失败,HTTP 状态 401:未授权。"}
{System.Net.WebException:请求失败,HTTP 状态 401:未经授权。
在 Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.GetSecureMethods()
在 Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.IsSecureMethod(字符串方法名称)
在 Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.SetConnectionSSLForMethod(字符串方法名称)
在 Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.ProxyMethodInvocation.Execute[TReturn](RSExecutionConnection 连接,ProxyMethod1 initialMethod, ProxyMethod1 retryMethod)
在 Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(字符串报告,字符串 HistoryID)
在 Microsoft.Reporting.WebForms.ServerReport.EnsureExecutionSession()
在 Microsoft.Reporting.WebForms.ServerReport.SetParameters(IEnumerable`1 参数)
在 Microsoft.Reporting.WebForms.Report.SetParameters(ReportParameter 参数)
在 CustomerWtrEff.aspx.cs:line 98 中的 Reports_CustomerWtrEff.GetReports(String SampleCodes, String lstSampleCode) }
【问题讨论】:
-
尝试使用 Thread 包装您的代码或模拟它,请参阅 http://iwillsharemypoint.blogspot.co.il/2011/04/ntlm-problam-request-failed-with-http.html
标签: asp.net sql-server-2008 reporting-services