我正在使用 Asp.net & c# 开发一个 Web 应用程序。要生成报告,我正在使用 SQL Server 商业智能开发工作室(ssrs)。我收到类似“请求失败,http 状态 401 未授权”之类的错误,请帮助我提前感谢实际错误如下
ex = {“请求失败,HTTP 状态 401:未授权。”}
{System.Net.WebException:请求失败,HTTP 状态 401:未经授权。在 Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.IsSecureMethod(String methodname) 在 Microsoft.Reporting.WebForms.Internal 的 Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.GetSecureMethods() .Soap.ReportingServices2005.Execution.RSExecutionConnection.SetConnectionSSLForMethod(String methodname) at Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.ProxyMethodInvocation.Execute[TReturn](RSExecutionConnection 连接,ProxyMethod1 initialMethod, ProxyMethod
1 retryMethod) 在 Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report, String HistoryID) 在 Microsoft.Reporting.WebForms.ServerReport.EnsureExecutionSession() 在 Microsoft.Reporting.WebForms.ServerReport.SetParameters (IEnumerable`1 参数) 在 Microsoft.Reporting.WebForms.Report.SetParameters(ReportParameter 参数) 在 Reports_CustomerWtrEff.GetReports(String SampleCodes, String lstSampleCode) 在 CustomerWtrEff.aspx.cs:line 98}