“/”应用程序中的服务器错误。

从字符串转换日期和/或时间时,转换失败。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Data.SqlClient.SqlException: 从字符串转换日期和/或时间时,转换失败。

源错误:


行 113:        DataSet ds = new DataSet();
行 114:        con.Close();
行 115:        sda.Fill(ds);
行 116:        return ds;
行 117:    }

源文件: d:\hxytwcomweb\B2BCMS_Exhibition\App_Code\Controller.cs    行: 115

堆栈跟踪:


[SqlException (0x80131904): 从字符串转换日期和/或时间时,转换失败。]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +388
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +815
   System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +4515
   System.Data.SqlClient.SqlDataReader.TryHasMoreRows(Boolean& moreRows) +385
   System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more) +502
   System.Data.SqlClient.SqlDataReader.Read() +37
   System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping) +167
   System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) +292
   System.Data.Common.DataAdapter.Fill(DataSet dataSet, String srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) +545
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +416
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +420
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +275
   Controller.GetDataSet(String coluns, String tabname, String where, String order) in d:\hxytwcomweb\B2BCMS_Exhibition\App_Code\Controller.cs:115
   Specification_Web_B2BCMS_Exhibition_2010_B2BCMS_Jinan_Default.Page_Load(Object sender, EventArgs e) in d:\hxytwcomweb\B2BCMS_Exhibition\B2BCMS_2010\B2BCMS_Jinan\Default.aspx.cs:42
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.33440