水晶报表-Exception of type 'System.OutOfMemoryException' was thrown.解决思路


水晶报表---Exception of type 'System.OutOfMemoryException' was thrown.
Server Error in '/' Application.

--------------------------------------------


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 190:            sql = "select DATE,PanelID,protypeID,panelsizeid,stepid,paneltypeid from npStepmove where 0=0 " + strsql;

Line 191:            sda = new SqlDataAdapter(sql, cn);

Line 192:            sda.Fill(ds, "npStepmove");

Line 193:

Line 194:            cn.Close();

 


Source File: e:\WEB\epqc2\front\RSstepmovepanel.aspx.cs    Line: 192 


Stack Trace: 



[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]

   System.String.CreateStringFromEncoding(Byte* bytes, Int32 byteLength, Encoding encoding) +67

   System.Text.EncodingNLS.GetString(Byte[] bytes, Int32 index, Int32 count) +112

   System.Data.SqlClient.TdsParserStateObject.ReadStringWithEncoding(Int32 length, Encoding encoding, Boolean isPlp) +105

   System.Data.SqlClient.TdsParser.ReadSqlStringValue(SqlBuffer value, Byte type, Int32 length, Encoding encoding, Boolean isPlp, TdsParserStateObject stateObj) +123

   System.Data.SqlClient.TdsParser.ReadSqlValue(SqlBuffer value, SqlMetaDataPriv md, Int32 length, TdsParserStateObject stateObj) +174

   System.Data.SqlClient.SqlDataReader.ReadColumnData() +88

   System.Data.SqlClient.SqlDataReader.ReadColumn(Int32 i, Boolean setTimeout) +223

   System.Data.SqlClient.SqlDataReader.GetValueInternal(Int32 i) +17

   System.Data.SqlClient.SqlDataReader.GetValues(Object[] values) +181

   System.Data.ProviderBase.CommonLanguageSubsetDataReader.GetValues(Object[] values) +10

   System.Data.ProviderBase.SchemaMapping.LoadDataRow() +30

   System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping) +137

   System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) +153

   System.Data.Common.DataAdapter.Fill(DataSet dataSet, String srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) +170

   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +175

相关链接

.net 程序开发 用户自定义控件

ATohko 13 years, 3 months ago

Your Answer