Проблемы при отображении резалтсетов с большим количеством строк
Добавлено: 18 фев 2009, 08:16
При построении таблицы в stiWebViewer по выборке около 5,5 тыс. строк, компонент либо показывает чистый лист, либо валится
Exception of type 'System.OutOfMemoryException' was thrown.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
Source Error:
Line 18: protected void Page_Load(object sender, EventArgs e)
Line 19: {
Line 20: this.ReportViewer.Report = this.CreateReport(@"IM\PropStatusIncum.mrt");
Line 21: }
Line 22:
Source File: d:\Work\Projects\CPDB\trunk\src_Tsk\Source\TNKBP-CPDB Web\Pages\Reports\IM\Encum.aspx.cs Line: 20
Stack Trace:
[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
System.IO.MemoryStream.set_Capacity(Int32 value) +63
System.IO.MemoryStream.EnsureCapacity(Int32 value) +55
System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count) +245
System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder) +95
System.IO.StreamWriter.Write(String value) +109
System.Xml.XmlTextWriter.WriteStartAttribute(String prefix, String localName, String ns) +1073
System.Xml.XmlWriter.WriteAttributeString(String localName, String value) +21
Stimulsoft.Report.Components.StiText.Serialize(StiObjectStringConverter converter, XmlTextWriter tw) +714
Stimulsoft.Base.Serializing.StiSerializing.SerializeProperty(XmlTextWriter tw, StiPropertyInfo prop) +603
Stimulsoft.Base.Serializing.StiSerializing.SerializeObject(XmlTextWriter tw, StiPropertyInfoCollection props) +154
Stimulsoft.Base.Serializing.StiSerializing.SerializeProperty(XmlTextWriter tw, StiPropertyInfo prop) +780
Stimulsoft.Base.Serializing.StiSerializing.SerializeObject(XmlTextWriter tw, StiPropertyInfoCollection props) +154
Stimulsoft.Base.Serializing.StiSerializing.SerializeProperty(XmlTextWriter tw, StiPropertyInfo prop) +661
Stimulsoft.Base.Serializing.StiSerializing.SerializeObject(XmlTextWriter tw, StiPropertyInfoCollection props) +154
Stimulsoft.Base.Serializing.StiSerializing.SerializeProperty(XmlTextWriter tw, StiPropertyInfo prop) +780
Stimulsoft.Base.Serializing.StiSerializing.SerializeObject(XmlTextWriter tw, StiPropertyInfoCollection props) +154
Stimulsoft.Base.Serializing.StiSerializing.Serialize(Object obj, Stream stream, String application, StiSerializeTypes serializeType) +269
Stimulsoft.Report.SaveLoad.StiXmlDocumentSLService.Save(StiReport report, Stream stream) +386
Stimulsoft.Report.StiReport.SaveDocument(StiDocumentSLService service, Stream stream) +126
Stimulsoft.Report.StiReport.SaveDocument(Stream stream) +41
Stimulsoft.Report.StiReport.SaveDocumentToString() +205
Stimulsoft.Report.StiReport.SavePackedDocumentToString() +10
Stimulsoft.Report.Web.StiWebViewer.ProcessReport() +862
Stimulsoft.Report.Web.StiWebViewer.set_Report(StiReport value) +98
TNKBP_CPDB.Web.Pages.Reports.UL.Encum.Page_Load(Object sender, EventArgs e) in d:\Work\Projects\CPDB\trunk\src_Tsk\Source\TNKBP-CPDB Web\Pages\Reports\IM\Encum.aspx.cs:20
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627