“/”应用程序中的服务器错误。 --------------------------------------------------------------------------------
句柄无效。 说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.ComponentModel.Win32Exception: 句柄无效。
源错误:
行 549: List<TC_RouteInfo> models = new List<TC_RouteInfo>(); 行 550: //执行查询 行 551: using (SqlDataReader rdr = SqlHelper.ExecuteReader(SqlHelper.LocalTrafficConnectionString, CommandType.Text, sbSql.ToString(), parameters)) 行 552: { 行 553: while (rdr.Read())
源文件: e:\新建文件夹\BDHChina.EAI.TrafficPlan\BDHChina.EAI\BDHChina.EAI.TrafficManage.DAL\Basic\TC_RouteDAL.cs 行: 551
堆栈跟踪:
[Win32Exception (0x80004005): 句柄无效。]
[SqlException (0x80131904): 在从服务器接收结果时发生传输级错误。 (provider: TCP Provider, error: 0 - 句柄无效。)] System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +1754082 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +5295874 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +242 System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error) +555 System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync() +262 System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket() +39 System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer() +64 System.Data.SqlClient.TdsParserStateObject.TryReadByte(Byte& value) +86 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +222 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() +59 System.Data.SqlClient.SqlDataReader.get_MetaData() +90 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +365 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite) +1325 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite) +175 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +53 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +134 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) +81 YYSSOFT.Lib2008.Systems.CommonHelper.SqlHelper.ExecuteReader(String connectionString, CommandType cmdType, String cmdText, SqlParameter[] commandParameters) +231 BDHChina.EAI.TrafficManage.DAL.TC_RouteDAL.GetListBySql(QueryBuilder queryBuilder) in e:\新建文件夹\BDHChina.EAI.TrafficPlan\BDHChina.EAI\BDHChina.EAI.TrafficManage.DAL\Basic\TC_RouteDAL.cs:551 BDHChina.EAI.TrafficManage.BLL.TC_RouteBLL.GetListBySql(QueryBuilder queryBuilder) in e:\新建文件夹\BDHChina.EAI.TrafficPlan\BDHChina.EAI\BDHChina.EAI.TrafficManage.BLL\Basic\TC_RouteBLL.cs:135 Traffic_Basic_TC_Culvert.bindTreeViewNew() in e:\新建文件夹\BDHChina.EAI.TrafficPlan\BDHChina.EAI\BDHChinaEAI\Traffic\Basic\TC_Culvert.aspx.cs:80 Traffic_Basic_TC_Culvert.IniData() in e:\新建文件夹\BDHChina.EAI.TrafficPlan\BDHChina.EAI\BDHChinaEAI\Traffic\Basic\TC_Culvert.aspx.cs:52 Traffic_Basic_TC_Culvert.Page_Load(Object sender, EventArgs e) in e:\新建文件夹\BDHChina.EAI.TrafficPlan\BDHChina.EAI\BDHChinaEAI\Traffic\Basic\TC_Culvert.aspx.cs:39 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51 System.Web.UI.Control.OnLoad(EventArgs e) +92 System.Web.UI.Control.LoadRecursive() +54 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772
-------------------------------------------------------------------------------- 版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.18067