当前位置: 代码迷 >> .NET报表 >> 水晶表格-Exception of type 'System.OutOfMemoryException' was thrown
  详细解决方案

水晶表格-Exception of type 'System.OutOfMemoryException' was thrown

热度:4795   发布时间:2013-02-25 00:00:00.0
水晶报表---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 n_p_Stepmove where 0=0 " + strsql;
Line 191: sda = new SqlDataAdapter(sql, cn);
Line 192: sda.Fill(ds, "n_p_Stepmove");
Line 193:
Line 194: cn.Close();
 

Source File: e:\WEB\epqc2\front\RS_stepmove_panel.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
  System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +137
  System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +83
  front_RS_stepmove_panel.Page_Init(Object sender, EventArgs e) in e:\WEB\epqc2\front\RS_stepmove_panel.aspx.cs:192
  System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
  System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
  System.Web.UI.Control.OnInit(EventArgs e) +99
  System.Web.UI.Page.OnInit(EventArgs e) +9
  System.Web.UI.Control.InitRecursive(Control namingContainer) +321
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +834

 
经常会有这样的问题存在,纠结中。。。。。。。。。

------解决方案--------------------------------------------------------
  相关解决方案