Jump to content


SqlClient Thread exceptions


  • Please log in to reply
1 reply to this topic

#1 Guest_Daniel Bichuete_*

Guest_Daniel Bichuete_*
  • Guests

Posted 18 November 2010 - 10:34 PM

Hi,
We are evaluating NCache Enterprise and we got into an issue that we expend someime trying to solve. We are getting a bunch of thse errors when using NCache API directly. NCache is being initialized on Application Start and diposed on Application End. We are getting this cache inside one page and testing if exists on Cache using Get and if not we add it. But almost everytime this error arises:

Alachisoft.NCache.Runtime.Exceptions.OperationFailedException: Alachisoft.NCache.Runtime.Exceptions.OperationFailedException: Add operation failed. Error : Não são permitidas novas transações porque há outros threads em execução na sessão. ---> System.Data.SqlClient.SqlException: Não são permitidas novas transações porque há outros threads em execução na sessão. at Alachisoft.NCache.Caching.Topologies.Clustered.PartitionOfReplicasServerCache.Add(Object key, CacheEntry cacheEntry, Boolean notify) at Alachisoft.NCache.Caching.Cache.Add(Object key, CacheEntry e) --- End of inner exception stack trace --- at Alachisoft.NCache.Caching.Cache.Add(Object key, CacheEntry e) at Alachisoft.NCache.Caching.Cache.Add(Object key, Object value, ExpirationHint expiryHint, CacheSyncDependency syncDependency, EvictionHint evictionHint, String group, String subGroup, Hashtable queryInfo, BitSet flag, String providerName, String resyncProviderName) at Alachisoft.NCache.SocketServer.Command.AddCommand.ExecuteCommand(ClientManager clientManager, Command command) at Alachisoft.NCache.Web.Command.CommandResponse.ParseResponse() at Alachisoft.NCache.Web.Caching.RemoteCache.Add(String key, Object value, CacheDependency dependency, CacheSyncDependency syncDependency, DateTime absoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, Int16 removeCallback, Int16 updateCallback, Int16 dsItemAddedCallback, Boolean isResyncExpiredItems, String group, String subGroup, Hashtable queryInfo, BitSet flagMap, String providerName, String resyncProviderName) at Alachisoft.NCache.Web.Caching.Cache.AddOperation(String key, Object value, CacheDependency dependency, CacheSyncDependency syncDependency, DateTime absoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, DSWriteOption dsWriteOption, CacheItemRemovedCallback onRemoveCallback, CacheItemUpdatedCallback onUpdateCallback, DataSourceItemsAddedCallback onDataSourceItemAdded, Boolean

Anyone has any idea on this issue ?

#2 Guest_Ron_*

Guest_Ron_*
  • Guests

Posted 22 November 2010 - 10:25 AM


Here is the English translation of this exception message.

"No new transactions are allowed because there are other threads running in the session"

It seems that you are using NCache database dependencies. Please provide us more information on how you are using NCache API in your application. If it is possible please send us your test code on support@alachisoft.com along with NCache version and edition information to reproduce this issue in our environment.







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users