在asp.net代码中获取System.Collections.ListDictionaryInternal异常 [英] getting System.Collections.ListDictionaryInternal exception in asp.net code

查看:1106
本文介绍了在asp.net代码中获取System.Collections.ListDictionaryInternal异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在asp.net代码中收到System.Collections.ListDictionaryInternal异常.此异常有时会不连续出现.

我从表中读取信息时遇到此异常.

我正在使用sql 2005作为后端.

有人可以帮助我解决这个问题吗?

详细的异常如下所示:

2009年12月21日03:01:12:421从txpm0qud&第5列:位于System.Data.SqlClient.SqlConnection.OnError(SqlException异常,布尔值breakConnection)
在System.Data.SqlClient.SqlInternalConnection.OnError(SqlException异常,布尔值breakConnection)
在System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
在System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior,SqlCommand cmdHandler,SqlDataReader dataStream,BulkCopySimpleResultSet bulkCopyHandler,TdsParserStateObject stateObj)
在System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
在System.Data.SqlClient.SqlDataReader.get_MetaData()
在System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds,RunBehavior runBehavior,字符串resetOptionsString)
在System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior,RunBehavior runBehavior,Boolean returnStream,Boolean异步)
在System.Data.SqlClient.SqlCommand.RunExecuteReader处(CommandBehavior cmdBehavior,RunBehavior runBehavior,布尔值returnStream,String方法,DbAsyncResult结果)
在System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior,RunBehavior runBehavior,Boolean returnStream,String方法)
在System.Data.SqlClient.SqlCommand.ExecuteReader处(CommandBehavior行为,String方法)
在System.Data.SqlClient.SqlCommand.ExecuteReader()
在TescoPrintManager.LPDListener.SQLRead(String tableName,String Query,String Parameter,Int32 columnToRead)

有什么帮助吗?

谢谢与问候
Vidhya

Hi,

i am getting System.Collections.ListDictionaryInternal exception in asp.net code.this exception is comming once in a while not contineously.

i am getting this exception while reading information from the table.

i am using sql 2005 as backend.

can anybody help me to solve this issue?

detailed Exception is as shown below:

21-12-2009 03:01:12:421 ERR Exception while reading Queue Exists details from txpm0qud & column 5 : at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader()
at TescoPrintManager.LPDListener.SQLRead(String tableName, String Query, String Parameter, Int32 columnToRead)

any help on this?

Thanks and Regards
Vidhya

推荐答案

我也有这个想法,我认为其中一些集合存在错误.我第一次尝试进行查找时遇到了一个错误,但此后一切都很好,所以我添加了一个try/catch来进行无意义的查找,有时会崩溃,但随后我的代码运行正常.如果这对您不起作用,则可以尝试发布实际的错误消息和代码.
I''ve had this too, I think there''s a bug in some of the collections. I had a bug the first time I tried to do a lookup, but afterwards it was fine, so I added a try/catch that did a meaningless lookup, and it sometimes blows up, but then my code runs fine. If that doesn''t work for you, you could try posting the actual error message, and the code.


这篇关于在asp.net代码中获取System.Collections.ListDictionaryInternal异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆