|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
system.TransactionsWhen I want to use the TransactionScope object, I need to include the System.Transactions namespace. But "using System.Transactions;" gives an error: The type or namespace name 'Transactions' does not exist in the namespace 'System' (are you missing an assembly reference?) When I get the folowing line in the web.config, it works: <add assembly="System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> Why does I need to add an assembly for the transactions and for other assemblies not? thanks for the explanation, Filip De Backer The other assemblies are added by default.
Cheers, Greg Show quote "Filip De Backer" <filip_de_bac***@hotmail.com.(donotspam)> wrote in message news:F2918244-9B02-4922-A92A-EC5CFE4092AE@microsoft.com... > Hi everyone, > > When I want to use the TransactionScope object, I need to include the > System.Transactions namespace. > But "using System.Transactions;" gives an error: > > The type or namespace name 'Transactions' does not exist in the namespace > 'System' (are you missing an assembly reference?) > > When I get the folowing line in the web.config, it works: > > <add assembly="System.Transactions, Version=2.0.0.0, Culture=neutral, > PublicKeyToken=B77A5C561934E089"/> > > Why does I need to add an assembly for the transactions and for other > assemblies not? > > thanks for the explanation, > > Filip De Backer > You need to explicitly add a reference to the System.Transactions DLL.
This library is not required unless you are creating distributed transactions, which is probably why it's not included in the default namespaces. --Mary On Fri, 5 May 2006 00:34:01 -0700, Filip De Backer <filip_de_bac***@hotmail.com.(donotspam)> wrote: Show quote >Hi everyone, > >When I want to use the TransactionScope object, I need to include the >System.Transactions namespace. >But "using System.Transactions;" gives an error: > >The type or namespace name 'Transactions' does not exist in the namespace >'System' (are you missing an assembly reference?) > >When I get the folowing line in the web.config, it works: > ><add assembly="System.Transactions, Version=2.0.0.0, Culture=neutral, >PublicKeyToken=B77A5C561934E089"/> > >Why does I need to add an assembly for the transactions and for other >assemblies not? > >thanks for the explanation, > >Filip De Backer |
|||||||||||||||||||||||