通过在azure上托管的.net网站上的reportviewer加载报告时出现401 Unauthorized Error

时间:2015-02-24 13:22:43

标签: asp.net sql-server azure reporting-services report-viewer2010

我的.net网站托管在azure上。在那,我试图使用reportviewer控件加载报告,但我在一分钟或2内加载401 unknownize错误。我检查azure日志,看到完整的堆栈跟踪错误,但那里没有日志。然后我检查reportserver日志文件,我找到了以下堆栈跟踪



ERROR: Reporting Services error Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeClientDisconnectionException: A client has disconnected from the Report Server Web service application domain ReportServer_MSSQLSERVER_0-1-130692380425542626. No corrective action is required. An error code has been submitted to ASP.NET to release the connection. The error code is 800708CA. ---> System.Runtime.InteropServices.COMException (0x800708CA): This network connection does not exist. (Exception from HRESULT: 0x800708CA)




记录大约为1,50,000及以上。但是,有时它会完全加载。

任何帮助将不胜感激

谢谢,

1 个答案:

答案 0 :(得分:0)

我相信reportviewer控件依赖于会话状态来维护报表的详细信息,因为它已构建和分页。我不确定azure如何工作的细节,但是对于负载均衡的服务器,我不得不配置一个单独的Session Server数据库,以便在服务器切换到服务器时保持状态。

管理会话

http://blogs.msdn.com/b/cie/archive/2013/05/17/session-state-management-in-windows-azure-web-roles.aspx

报告查看器和会话

http://blogs.msdn.com/b/brianhartman/archive/2009/02/15/did-your-session-really-expire.aspx