Cannot access a disposed object. Object name: ‘TransactionScope’.

The adapter « WCF-SQL » raised an error message. Details « System.ObjectDisposedException: Cannot access a disposed object.
Object name: ‘TransactionScope’.
at System.Transactions.TransactionScope.Complete()
at System.ServiceModel.Dispatcher.TransactionRpcFacet.ThreadLeave()
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage7(MessageRpc& rpc) ».

 

When using WCF-SQL adapter you can obtain this error by requesting a SQL server which doesn’t have MSDTC active.

 

To clear this issue configure MSDTC like your BizTalk server

Publicités