Windows Containers


DTC in container


Hello!
My application required distributed transaction to SQL Server which running outside of the container.
When I trying enlist transaction then I get error:
Unhandled Exception: System.Transactions.TransactionManagerCommunicationException: Communication with the underlying transaction manager has failed. ---> System.Runtime.InteropServices.COMException: The MSDTC transaction manager was unable to pull the transaction from the source transaction manager due to communication problems. Possible causes are: a firewall is present and it doesn't have an exception for the MSDTC process, the two machines cannot find each other by their NetBIOS names, or the support for network transactions is not enabled for one of the two transaction managers. (Exception from HRESULT: 0x8004D02B)
at System.Transactions.Oletx.IDtcProxyShimFactory.ReceiveTransaction(UInt32 propgationTokenSize, Byte[] propgationToken, IntPtr managedIdentifier, Guid& transactionIdentifier, OletxTransactionIsolationLevel& isolationLevel, ITransactionShim& transactionShim)
at System.Transactions.TransactionInterop.GetOletxTransactionFromTransmitterPropigationToken(Byte[] propagationToken)
--- End of inner exception stack trace ---
at System.Transactions.TransactionInterop.GetOletxTransactionFromTransmitterPropigationToken(Byte[] propagationToken)
at System.Transactions.TransactionStatePSPEOperation.PSPEPromote(InternalTransaction tx)
at System.Transactions.TransactionStateDelegatedBase.EnterState(InternalTransaction tx)
at System.Transactions.EnlistableStates.Promote(InternalTransaction tx)
at System.Transactions.Transaction.Promote()
at System.Transactions.TransactionInterop.ConvertToOletxTransaction(Transaction transaction)
at System.Transactions.TransactionInterop.GetExportCookie(Transaction transaction, Byte[] whereabouts)
at System.Data.SqlClient.SqlInternalConnection.GetTransactionCookie(Transaction transaction, Byte[] whereAbouts)
at System.Data.SqlClient.SqlInternalConnection.EnlistNonNull(Transaction tx)
at System.Data.SqlClient.SqlInternalConnection.Enlist(Transaction tx)
at System.Data.ProviderBase.DbConnectionInternal.ActivateConnection(Transaction transaction)
at System.Data.ProviderBase.DbConnectionPool.PrepareConnection(DbConnection owningObject, DbConnectionInternal obj, Transaction transaction)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
When I trying run "nbtstat -c" then I got error
" Failed to access NetBT driver -- NetBT may not be loaded"
How I can call operations that required distribution transactions?
nigo
Hi Alexey -
As the error message states the possible causes for this are:
A firewall is present and it doesn't have an exception for the MSDTC process The two machines cannot find each other by their NetBIOS names The support for network transactions is not enabled for one of the two transaction managers. (Exception from HRESULT: 0x8004D02B).
Could we start by excluding the above so we can narrow down the issue? As far as the NetBT driver issue, you could start by looking at the article below:
https://support.microsoft.com/en-us/kb/888373
Let me know what you find,
Thanks, Perry

Related Links

Not able to PSRemote into a container (TP4)
TP4 CONTAINER ERROR: failed to initialize: The driver was not loaded because it failed its initialization call. (0x80070287).
Trouble trying to get a ASP .NET Web API project to work on microsoft/iis based docker container.
.NET framework 3.5 or earlier
Is there any tool for Windows Container cluster deployment ? such as : fig / docker compose ...etc on linux platform
Are there known WinNAT issues with container-to-host communication?
Docker microsoft/iis image
Cannot enable printers for windowsservercore container
Docker container - users other than containeradministrator in TP5?
Install-WindowsFeature : The given key was not present in the dictionary.
How to run commands as a specific local user inside Windows Docker container
Docker : error while trying to run first image
DOT NET APPLICATION DEPLOYMENT on WINDOWS 2016 CONTAINERS
Docker-compose with windows conatiners
Add-WindowsFeature : ArgumentNotValid: The role, role service, or feature name is not valid: 'Containers'. The name was not found.
Hyper-V Manager Enable delegation of user credentials?

Categories

MSDN
Using Forums
Apps for Office and Sh...
HealthVault
SQL Server
WebsitePanel
Microsoft Research
Office Live Development
Visio 2010
Project Server
Lync Server
Microsoft Azure
Archived Forums E-H
OneDrive Development
Internet of Things
Virtualization
Software Entwicklung f...
Forums Issues (not pro...
Visual Basic
C++ Standards, Extensi...
Parallel Computing in ...
Test Tools in Visual S...
Developing Universal W...
XboxLiveDevelopment
Network Monitor
Application Security f...
Windows Desktop Search...
Windows Desktop Web Se...
Windows Hardware Testi...
Hardware Development B...
Access for Developers
SharePoint 2013 - Deve...
SharePoint 2010 - Search
Azure Management Portal
Azure Scheduler
Azure Mobile Engagement
Azure Security Center
Azure Database for Pos...
Team Foundation Server...
Commerce Server 2009
Debugger Canvas
Internet Explorer Exte...
Small Basic
SQL Server Reporting S...
SQL Server Analysis Se...
SQL Service Broker
SQL Server Express
SQL Server Data Wareho...
SQL Server Search
SQL Server Migration
SQL Server Application...
SQL Server In-Memory T...
Standard 2009: Misc
Windows Embedded Compa...
ClickOnce and Setup & ...
Server Virtualization
SDK for Home Server 20...
Windows Live ID: Devel...
CRM Deployment
Orchard –Discussions
Orchard - Help and Sup...
WebsitePanel - Support
Bing Maps WPF, WP7/8/8...
Bing Maps Web Controls
Open Specifications Qu...
SharePoint Server Prot...
Project Server - Setup...
Silverlight Installati...
Silverlight 4
Managed Extensibility ...
Silverlight Video and ...
Expression Studio with...
Windows Performance To...
.NET StockTrader Sampl...
AppFabric Service and ...
Axum Incubation Project
Building Windows Store...
Building Windows Store...
CAT.NET
Core Coding Experience...
Core Coding Experience...
Doloto
Chart Controls for .NE...
Getting Started With V...
LightSwitch in Visual ...
Monitor, Alert and Aut...
Phoenix
Popfly Explorer
POS for .NET
Search Server: Report ...
Surface Application De...
Team Foundation Server...
Visual Basic Language
Visual C++ Express Edi...
Visual C++ IDE
Visual Studio Applicat...
Visual Studio Gallery ...
Visual Studio Lab Mana...
Visual Studio Performa...
Visual Studio Source C...
Visual Studio Tools fo...
WCF Data Services (Pre...
Web Development in Vis...
Windows Presentation F...
XML Paper Specificatio...
XNA Framework
Kinect for Windows v1 SDK
Azure N-Series Virtual...
Microsoft R Server

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile