2009-12-24 42 views
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"); 
+1

你在运行什么操作系统? Windows的客户端版本具有10个同时连接的限制。 – itowlson 2009-12-24 00:22:50

+0

我使用Windows,服务器和客户端。你的意思是如果请求超过10,那么会得到一个运行时错误,但不是一条消息来提示你的请求数量达到极限? – MemoryLeak 2009-12-24 00:32:59

+0

你会得到什么错误? – SLaks 2009-12-24 00:35:39

回答

3

你可能会托管在Windows上的消费级版本,如XP或Vista的报告。

消费级Windows版本不会接受超过10个并发入站连接。

您需要使用Windows Server。

+0

不,它被部署到客户端,所以服务器是windows server 2003版本。 – MemoryLeak 2009-12-24 01:02:29

相关问题