When using LogicalCallContext to exchange some data on streams, we encountered an exception from the following stack trace
System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.Collections.Hashtable.HashtableEnumerator.MoveNext() at System.Runtime.Remoting.Messaging.LogicalCallContext.Merge(LogicalCallContext lc) at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase) at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
I read from MSDN when EndInvoke called CallContext merges in streams. My question is not about CallContext inside CallContext concurrency support. If this is not supported, should we use CallContext at the first point? If yes, then there are some recommendations for this.
Can someone explain when I can see this stack trace?
an example for such a scenario is more useful if you can share.
multithreading c #
sri
source share