Recent update: 2008-3-21

TransactionScope escalation

2826 byte By JoelMcCormick at 2008-3-7
Hi We were excited by the potential of TransactionScope to simplify our data access code, eliminating the need to pass around a database transaction.After playing around with .NET 2.0 for a while we were very disappointed to find that unless you used the exact same connection object and kept it ...

TransactionScope authentication / poorly documented!

1435 byte By G.T. at 2008-3-6
Ahhhhh Microsoft, the most important feature in 2.0 “Transactions” is poorly documented, and almost working, as it looks like the people who developed it got it to work under one scenario, and released it immediately, never tested completely.It is like, hey, does windows xp connected to a ...

UnauthorizedAccessException when using MSDTC

12500 byte By MartinPar at 2008-3-5
Hello everyone, We have a 3-tier application, the client, the server and the databaser server. It was developed using C# 2.0 and .Net 2.0, the database server is MS-SQL 2000 and we have some MSMQ in there. All 3 are located on different machines. The client is Windows XP SP-2, the application ...

MSDTC, distributed applications and XA compatability

1151 byte By NickRumble at 2008-3-3
We have an application comprising of two discrete components (a .NET 1.1 COM+ component, and a legacy ODBC component), which operate on the same SQL Server data (same database rows) within the same distributed transaction. We use the ITransactionExport/Import interfaces to propagate the DTC ...

SOAP WS-AT DurablePC Network outage after succesful PREPARE phase

1237 byte By RichardMaher at 2008-3-1
Hi,Given the following WS-AT 2PC txn scenario: -1) All remote WS-AT Transaction Managers have responded PREPARED to the coordinating msdtc TM, and the outcome of the transaction is COMMIT2) The network link to one of the participating TMs is broken before a COMMIT command could be sent.Does the ...

Run selective code in transaction

760 byte By RamBilas at 2008-2-28
Hi,I am very new to this enterprise services based programming (COM+).I have created a Enterpriseservices based component with the TransactionOption property set to 'Supported'. Now, I would like to know the following things.How to handle database related queries which dont require any type ...

Transaction Scope with datatable updates

1337 byte By LoriJ at 2008-2-27
I have a VB windows app using a dataset with multiple datatables and a datagridview for the UI. Okay. I have the datatable. updates and inserts and deletes working. Now, I just want to wrap the calls to the different table updates/inserts/deletes in a single transaction so I can manage the ...

Windows COM+ Advice (",))

292 byte By Christoffa at 2008-2-26
<div>Hi Wonder if anyone can offer some advice on the following...... I am looking to increase the constructor string length in the Windows COM component services from 512 to 1024. Does anyone know if this is possible? Any advice greatfully recieved Kind Regards Christoffa</div>

Configuring MSDTC on Client PCs

612 byte By CoreyMc at 2008-2-25
I have an application which uses an implicit transaction using Transaction Scope when edits are saved to the SQL 2K server. MSTDC must be enabled on the client PC. Can someone please provide me with an example of how I can programmatically configure the client PC MSDTC settings for them? Right ...

TIP Txn resolution (*ONLY* failed to notify)

1386 byte By RichardMaher at 2008-2-24
Hi,It appears that DTC is not fulfilling its end of the bargain when it acts as coordinator in a distributed TIP transaction.I deliberately killed my Transaction Manager after it had successfully returned a PREPARED response to the DTC. I then pulled the plug (literally) on the network ...

TransactionScope fails

1131 byte By SteveSeverance at 2008-2-23
Hi,I am using transactionScope and it is failing. I tried DTC Ping as was recommended in another post and it fails to. On the computer I try to ping:++++++++++++Start Reverse Bind Test+++++++++++++Received Bind call from DEVELOPTrying Reverse Bind to DEVELOPError(0x2AFC) at nameping.cpp ...

Have you looked at TIP - "Transaction Internet Protocol"?

1110 byte By MichaelHerman-Parallelspace- at 2008-2-22
SCENARIOSuppose I call the following method in a ServicedComponent:public void DoMixedUpdates(){ DoDBUpdateA(); DoDBUpdateB(); CallWebService1ToDoDBUpdateC(); CallWebService2ToDoDBUpdateD(); DoDBUpdateE(); DoDBUpdateF();}All 6 calls perform DB updates but the middle 2 calls call "plain old" ...

Entry point not defined

10989 byte By airwalker2000 at 2008-2-22
Hi people.Im using source code from a microsoft self paced book(70320) to create and consume a component (com+)when I try to build the project I get the following message:Program 'C:\EC70320\BankAccounts\obj\Debug\BankAccounts.exe' does not have an entry point definedI've created the snk ...

Need useful documentation/sample for using RecoveryInformation() in a .NET durable RM

851 byte By MichaelHerman-Parallelspace- at 2008-2-21
It's really dissappointing to see how poor the .NET documentation is for using IEnlistmentNotification to create a durable RM that also uses RecoveryInformation().My goal is incredibly simple: recreate the CompensatingResourceManager MSDN sample ...

UnauthorizedAccessException = Error accessing COM+ application by webservice

792 byte By Leomar at 2008-2-20
Hi all, I build a webservice to access a COM+ application. I install the com+'s proxy in my machine, but when I run the webservice, appear this error ( in portuguese, that is my original language):System.UnauthorizedAccessException: Falha na recupera&#231;&#227;o de factory de ...

Need useful documentation/sample for using RecoveryInformation() in a .NET durable RM

851 byte By MichaelHerman-Parallelspace- at 2008-2-19
It's really dissappointing to see how poor the .NET documentation is for using IEnlistmentNotification to create a durable RM that also uses RecoveryInformation().My goal is incredibly simple: recreate the CompensatingResourceManager MSDN sample ...

Calling "transactional web services" within a series of database update calls - is

1110 byte By MichaelHerman-Parallelspace- at 2008-2-18
SCENARIOSuppose I call the following method in a ServicedComponent:public void DoMixedUpdates(){ DoDBUpdateA(); DoDBUpdateB(); CallWebService1ToDoDBUpdateC(); CallWebService2ToDoDBUpdateD(); DoDBUpdateE(); DoDBUpdateF();}All 6 calls perform DB updates but the middle 2 calls call "plain old" ...

Calling "transactional web services" within a series of database update calls - is Ind

1110 byte By MichaelHerman-Parallelspace- at 2008-2-17
SCENARIOSuppose I call the following method in a ServicedComponent:public void DoMixedUpdates(){ DoDBUpdateA(); DoDBUpdateB(); CallWebService1ToDoDBUpdateC(); CallWebService2ToDoDBUpdateD(); DoDBUpdateE(); DoDBUpdateF();}All 6 calls perform DB updates but the middle 2 calls call "plain old" ...

Using IProcessInitializer

2037 byte By Goodie at 2008-2-16
Hi,We are currently trying to use IProcessInitializer in our COM+ components in order to perform some preparation/cleanup of resources when dllhost is loaded/unloaded. We can't find too much actual information about people using it so it's a bit hard to try and figure out how it works.We are ...

Design pattern for enlisting a "plain old API call" in a transaction?

943 byte By MichaelHerman-Parallelspace- at 2008-2-15
We have a third-party workflow server process that exposes a plain old managed .NET API with the following the following methods:1. Connecting to the server2. Setting datafields within the server3. Causing the datafields to be updated within server4. Closing the serverWe have a business object ...

ITransactionImport::import method error

951 byte By FabrizioC at 2008-2-15
Hello everybody, I need a little help in order to investigate an Error using ITransactionImport::import method.It seems that the transaction cookie used in several transaction operations become invalid if one of this operation fails without an explicit operation by our side.We need to perform 4 ...

Architecture: System.Transactions vs EnterpriseService

655 byte By Dalssoft at 2008-2-15
Hi, I'm a little bit confused with this new System.Transactions namespace. I was able to understand its propose, but it looks like it is the replacement for EnterpriseService (ServicedComponent) when all you want from COM+ is the transaction coordination. I'm about to start a new project and ...

Why have nested transaction rules changed?

538 byte By pkr2000 at 2008-2-15
I'm very annoyed by the change in nested transactions. Previously it was perfectly ok to nest a transaction with a different isolation level to the current Tx providing it didn't ask for a stronger isolation level. Now it seems it has to be exactly the same. This has made porting from ...

COM+ and dependent COM+ assemblies to client

607 byte By nd_ramesh at 2008-2-15
i have a client application cli calling COM+ assembly (comA) thru application proxy (exported from the server machine). comA references other COM+ assemblies such as comB, comC and comD. Now the client cliA does not talk to comA until you copy the assemblies comB, comC and comD into the folder ...

Problem Rolling back a Distributed Transaction

958 byte By Vivek.S at 2008-2-14
Hi, I was wondering if any of you guys have encountered the following problem using system.transactions object. I have two databases running Oracle 8.1.4.7.0 and have Oracle 9i client. When i run distributed transaction on these two databases and raise an exception to see if the transaction is ...

Sqlite with transactions ?

137 byte By Avi_harush at 2008-2-14
Tried it with transactionscope and it didn't rolled back. Doe's it work with transactions ? Thanks Avi harush

Lightweight transactions vs. Connection pooling

452 byte By pkr2000 at 2008-2-13
As I understand it, if you open a second SQL connection within a transaction it will automatically be promoted from a Lightweight Transaction (LT) to a full DTC version. However, normal advice with ADO is to utilise connection pooling by simply opening the connection and closing it ASAP. ...

.NET COM+ - "Error when enlisting in a distributed transaction"

866 byte By SamuelNakano at 2008-2-13
Hi,I developed a .NET serviced component with Framework .NET 1.1, instaled it in a win2k SP4 server (COM+ 1.0) and marked that component with Transactions=Required. This application server communicates with a SQL Server 2000 SP3 database server inside the same subnet/domain. When a simple ...

TransactionScopeOption - what no "Supports"?

556 byte By pkr2000 at 2008-2-12
I'm in the process of converting a .net 1.1 program to use System.Transactions. However, I've hit a problem. The current code creates a ES version of a transaction scope and sets the equiv' TransactionScopeOption to "Supports" which means enlist in a transaction if one is there ...

enter "this user" everyday

459 byte By sam_soccer at 2008-2-11
We use complus extensively for our ERP. In one particular installation, the security setting is "This user" and everything works perfect, but when the next day (as complained by the customer) the user re-enters into the app, the call doesnt get authenticated. One workaround we found ...

An error occurred while enlisting in a distributed transaction.

1475 byte By Snkscore at 2008-2-10
I am trying to wrap some DB calls in a com transaction for testing purposes (make a bunch of calls to the DB, check if they look right, rollback any changes, move on to next test).So far it works fine running against a local SQL Server, but I can't get it to work against our actual development ...

TransactionScope with sql and msmq

254 byte By Avi_harush at 2008-2-10
Is it possible to use transactionscope and in the {} to use sql and msmq? msmq is the datasource and the sql is the target. I wan't it to be transactional Could't find a sample for it . Is that possible ? Thanks Avi

Distributed transaction support in wcf using WS-AT

232 byte By lingga at 2008-2-8
Hi all, Could anybody knows where I could find the example of distributed transaction in wcf using ws-at? So it enables 3rd party service (like IBM svc) to join the transactions. Thank you in advance. lingga

(I'm in a hurry) Problems with TransactionScope and MS DTC

1361 byte By JulioDeLeon at 2008-2-8
Hello, I need help with this topic...I'm working with Visual Studio 2005 and SQL Server 2005 DB within a Simple Local Network. I receive a Message:"The asociated transaction administrator has disabled its support of remote or network transactions" (it's in spanish, so I did translate it to ...

(I'm in a hurry) Problems with TransactionScope and MS DTC

1336 byte By JulioDeLeon at 2008-2-7
Hello, I need help with this topic... I'm working with Visual Studio 2005 and SQL Server 2005 DB within a Simple Local Network. I receive a Message: "The asociated transaction administrator has disabled its support of remote or network transactions" (it's in spanish, so I did translate it to ...

TransactionScope with TableAdapters promoting to DTC transaction - why?

2573 byte By IanBla at 2008-2-7
Why does the following promote to DTC when using SQL Server 2005? All tableadapters are using the same connection so surely the transaction can stay lightweight? using (SqlConnection conn = new ...

will SetAbort() rollback transactions even I have a commit in my procedures?

3211 byte By xpding at 2008-2-7
I am writing some code to test the possiblity to use COM+ enterprise transaction to rollback procedures in our DB tests. So for each test, begin a transaction, then run stored procedures, then call SetAbort() to rollback everything. Then run the next test. Our stored procedures are all have ...

Dot Net Distributed Application by using COM+ (MTS server)

400 byte By SanjeetSachan at 2008-2-7
Hello, we want to build Dot net Distributed application. means we want place our Logic DLL (Dotnet Assembly) in different mechine as hosted by COM+ server. and want access this in client side (in UI layer). How we can access it without using Remoting or Webservices. Is it possible? How we can ...

didn't post the entire error message

1625 byte By b_hardman at 2008-2-6
Hi everyone, I am having some trouble with the DTC on a client machine and need help to get it working. The problem started while doing some experimenting with the new WCF stuff, but has evolved into a simple client side dtc problem. In a nutshell, I can't get dtctester utility to work. Some ...

MSDTC problems

1625 byte By b_hardman at 2008-2-6
Hi everyone, I am having some trouble with the DTC on a client machine and need help to get it working. The problem started while doing some experimenting with the new WCF stuff, but has evolved into a simple client side dtc problem. In a nutshell, I can't get dtctester utility to work. Some ...

Communication with the underlying transaction manager has failed.

10470 byte By armo2006 at 2008-2-5
Does anyone know how to resolve this exception. Exception: Message: Communication with the underlying transaction manager has failed. Stack Trace: System.Transactions.TransactionManagerCommunicationException: Communication with the underlying transaction manager has failed. > ...

XADLL With Oracle

681 byte By sof4king at 2008-2-5
Hi all, On an XP sp2 system (using fat32), I try to run a COM+ server using XA transaction with oracle 10 client. I have a "8000D048" error in the server application. and I can see in the event log a message telling me to add the XADLL key in the HKLM/software/microsoft/msdtc registry. I ...

MSDTC error : Import of MSDTC transaction failed: Result Code = 0x8004d00e.

1361 byte By Bogdan.B at 2008-2-4
Hi everyone! I suppose you've allready heard of this error, I've searched for answers on many other forums and groups but I didn't find a clear answer. So, for something to begin with - I am working on a VB 6.0 - 3 layered application and I get the error when the business layer is trying ...

Missing Commit

825 byte By AndersW at 2008-2-4
Maybe this is obvious to everyone, but it took me a while to figure out. I am experimenting with a durable resource manager that is supposed to live inside an assembly that is loaded into the client application program process. I have noticed that sometimes the Commit() method is never called ...

MSDTC Warning, started showing up after a DC demotion with DCPROMO, now I have only 1 DC, and a

562 byte By rkocur at 2008-2-4
Event Type: WarningEvent Source: MSDTCEvent Category: SVCEvent ID: 53258Date: 5/22/2006Time: 4:02:41 AMUser: N/AComputer: EPCDescription:MS DTC could not correctly process a DC Promotion/Demotion event. MS DTC will continue to function and will use the existing security settings. Error ...

Tiny question about MSDTC behaviour

255 byte By AlexeyShcherbak at 2008-2-4
Can MSDTC abort\rollback transaction if I create instance of COM-object (COM object marked as "Transaction - Not supported" in "Component Services" snap-in) during "transactioned" part of .NET code ?Which way MSTDC will act?

Count number of active transactions in COM+

172 byte By MichelleCheng at 2008-2-3
I want to write a program to monitor COM+ transactions. Does anyone know how to write in VB6 to count the numbers of active transactions held in COM+ server?

Com+ Error

342 byte By Amjith at 2008-2-3
I have implemented transaction using Service Config using DotNet with Oracle 9i as back end. Some times we are geting the following error ORA 02051: Another session in the same transaction as failed. Whether any body has faced this problem before. Waiting for resolution. Thanks in advance ...

TransactionInDoubtException

752 byte By pkr2000 at 2008-2-2
Source: System.Transactions.TransactionInDoubtException: mscorlibText: The transaction is in doubt I'm getting the following error is a very specific circumstance and I don't understand why. I've got a single unavoidably long running transaction (~90mins) that I run from a .net component ...

Newbie question about removing the use of MSDTC

772 byte By MichaelToner at 2008-2-2
Forgive the lameness of this question. I am part of a team that has developed a Visual Studio 2005 web application that currently uses MSDTC and Microsoft Enterprise Library. The problem is that my hosting team will not run the MSDTC as a service as they say it opens up too many ports to the ...

Software Development for Windows Vista

Site Classified