Quantcast
Channel: BizTalk Server Adapters and Adapter Pack Forum
Viewing all articles
Browse latest Browse all 197

WCF SQL Error with TypedPolling Interface when Use Ambient Transaction = True

$
0
0

BizTalk 2010 - I have a TypedPolling interface which uses a Data Available and Polling Statements (executes stored procedures).  I need to have "Use Ambient Transaction=True" because that is the only way that the Data Available statement is called.  However, when it is set to true, I get the following error:

The adapter "WCF-Custom" raised an error message. Details "System.ObjectDisposedException: Cannot access a disposed object.

Object name: 'TransactionScope'.

When I set Use "Ambient Transaction=False" the Polling statement SP executes and returns the expected xml data.  The SP itself does not appear to be using transactions (which can conflict with BizTalk's Use Ambient Transaction=True) but I cannot set it to False without disabling the use of the Data Available SP, so that is not an option for a fix.  The only thing I can see that's even related to transactions is that SET XACT_ABORT ON is at the beginning. 

Does anyone know what else I should look for in the Polling Statement Stored Procedure to eliminate this error?  As I said, I need to have "Use Ambient Transaction" set to True in order to fire the Data Available statement.

Marvin


mp


Viewing all articles
Browse latest Browse all 197

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>