2014-12-20 3 views
0

보고서 뷰어에 SSRS 보고서를 표시하는 웹 응용 프로그램이 있습니다. 지난 10 개월 동안 모두 잘 진행되었습니다. 그러나 지난 3 일 갑자기 보고서를 보면서 갑자기 오류가 발생했습니다.보고서 뷰어 오류 : System.Net.WebException : 요청이 HTTP 상태 401 : Unauthorized로 실패했습니다.

System.Net.WebException: The request failed with HTTP status 401: Unauthorized. 
    at Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.GetSecureMethods() 
    at Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.IsSecureMethod(String methodname) 
    at Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.SetConnectionSSLForMethod(String methodname) 
    at Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.ProxyMethodInvocation.Execute[TReturn](RSExecutionConnection connection, ProxyMethod`1 initialMethod, ProxyMethod`1 retryMethod) 
    at Microsoft.Reporting.WebForms.ServerReport.EnsureExecutionSession() 
    at Microsoft.Reporting.WebForms.ServerReport.GetParameters() 
    at ViewReport.showReport(Guid ReportID, String ReportName, String ReportPath, Boolean isExport, Boolean isHeirarchy, String UserName, Decimal repID) 

모든 사용자가이 오류를 겪고있는 것은 아닙니다. 나는 또한 보고서를 테스트하려고 시도했는데 때로는이 오류가 나타나기도하고 때로는 같은 보고서가 아니라는 것을보고 충격을 받았습니다. 내 응용 프로그램에서 보고서 뷰어 10을 사용하고 SSRS 관리자 자격 증명을 전달하여 보고서를 가져 왔습니다.

내 응용 프로그램에서 httpruntime executiontimeout을 20 분으로 설정했습니다. 이 오류는이 오류가이 속성을 기본값에서 20 분으로 변경하여 보고서 시간 초과를 늘린 후 발생하므로이 오류의 원인이 될 수 있습니까?

이 오류는 나를 죽이는 데 도움이 되십시오.

답변

0

코드를 Page_load 이벤트에서 Page_Init 이벤트로 이동하여 문제를 해결합니다.