0
本页面我使用水晶报表生成报表,但如果有10个用户或多个用户同时请求此页面,则某些用户会收到运行时错误。为什么当10个用户并发请求同一页面时发生运行时错误?
但如果正常使用,一切都是好的。
示例代码:
report.Load(Request.PhysicalApplicationPath + "reports\\test.rpt");
report.FileName = Request.PhysicalApplicationPath + "reports\\test.rpt";
report.DataSourceConnections[0].SetConnection(Properties.Settings.Default.ReportServer, Properties.Settings.Default.ReportDatabase, Properties.Settings.Default.ReportUsername, Properties.Settings.Default.ReportPassword);
report.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, false, "Countries");
你在运行什么操作系统? Windows的客户端版本具有10个同时连接的限制。 – itowlson 2009-12-24 00:22:50
我使用Windows,服务器和客户端。你的意思是如果请求超过10,那么会得到一个运行时错误,但不是一条消息来提示你的请求数量达到极限? – MemoryLeak 2009-12-24 00:32:59
你会得到什么错误? – SLaks 2009-12-24 00:35:39