system.Transactions

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Back
Top