0

使用 oracle 查询通知和 ODP.Net 调试 Web 应用程序时,我遇到了一个奇怪的错误

我得到的例外是:

Item has already been added. Key in dictionary: '4118'  Key being added: '4118'

调用栈如下:

Oracle.ManagedDataAccess.dll!OracleInternal.ServiceObjects.NotificationBufferManager.PutNotificationOraBufPool(OracleInternal.Network.OracleCommunication orclCommunication)
Oracle.ManagedDataAccess.dll!OracleInternal.ServiceObjects.NotificationHandler.ProcessBufferedNSDataPackets()
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state)
mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state)
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart()
[Native to Managed Transition]

有谁知道是什么原因造成的?

4

1 回答 1

0

错误试图告诉你到底出了什么问题... aKey被添加到Dictionary已经包含Key. 需要先检查是否存在某个键,然后应该更改该值,而不是尝试使用相同的键重新添加另一个值。

于 2015-06-24T18:16:32.733 回答