Christian Nagel's OneNotes

.NET Training, Consulting, Coaching - C#, Web Services, Enterprise Services, ASP.NET, Whidbey, Longhorn and More!

Affiliations

Books I've written

INETA UG Leaders

My Blogroll

Chapter 7 - Transactions

Chapter 7 is about transactions. After giving an introduction to transactions I start with programmatic transactions using ADO.NET.
Next automatic transactions with serviced components and the [Transaction] attribute follows.
COM+ 1.5 allows setting transaction isolationn levels, so this is covered here, too.
Services without components are a very interesting approach to use transactions without configured components (only for Windows Server 2003).

Finally, I'm giving a first introduction to .NET 2.0: System.Transactions.With the TransactionManager and Transaction class it is possible to use the same classes for DTC and Web Services.

Update (Information from Florin Lazar): Windows XP will have support for Services without Components with SP2.

Christian

Posted: Jan 04 2004, 09:31 PM by CNagel | with 10 comment(s)
Filed under:

Comments

Robert Hurlbut said:

I thought Services Without Components was a feature available on Windows XP as well?

From MSDN:

But on Windows XP/Windows Server 2003, both unmanaged and managed code can make use of COM+ 1.5 services without having it componentized or configured in COM+.
# January 5, 2004 7:36 AM

Christian said:

Maybe you have an old MSDN documentation, or found a place where the reference to Windows XP is still in there.
Services without components was planned for Windows XP. However, it looks like there has been some problems, so the support has been removed.
If you try using the ServiceDomain class on Windows XP you will get the exception PlatformNotSupportedException.

Have a look at the documenation for CoEnterServiceDomain - platforms: Windows Server 2003 only.
# January 5, 2004 7:53 AM

Robert Hurlbut said:

I pretty much exclusively use Windows Server 2003, so I wasn't aware of the missing functionality. Thanks for the update. Looking forward to this chapter.

By the way Christian, have you seen my current running thread on my blog regarding ES Transactions and the issues I am having with Windows Server 2003? If you have any ideas, I would love to hear them.
# January 5, 2004 8:15 AM

Florin Lazar [MSFT] said:

Services Without Components should work just fine on XP + latest services packs + .Net Framework 1.1.
# February 4, 2004 8:32 PM

Christian said:

Florin, maybe it now works with native code. Using .NET 1.1 I still get an exception of type "PlatformNotSupportedException" when creating a object of type ServiceConfig.
# February 5, 2004 1:05 AM

Dino said:

SWC works on WinXP with SP1? or with SP2?
or is there some post-SP1, pre-SP2 hotfix we can ask for to get this to work?
# May 6, 2004 2:49 PM

Christian said:

Dino, SP2 is needed.
# May 6, 2004 3:09 PM

TrackBack said:

# May 18, 2004 10:09 AM

TrackBack said:

SWC works only on Windows Server 2003 (and XP SP2)
# August 21, 2004 9:43 AM

TrackBack said:

# September 14, 2004 8:16 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)