I'm trying to use trans开发者_开发知识库action LINQ, but I cant' find the TransactionScope Class
.
Help please. Thanks...
usually System.Transactions
is not part of your references, try to add it in your references by:
- right click on your references if you are using Web Application or in your Project if you are using Web Site.
- find the
System.Transactions
in the.NET
references.
You should find the System.Transactions
in your references.
If you guys working with console application than right click on the References inside of your project than Add references and a window will pop up, inside of this window find the Assemblies, left click on Assemblies. There will be pop up a list of assemblies look for Transaction... good luck!
And for those of us trying to add it to our web.config
:
<add assembly="System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
As in:
<configuration>
<system.web>
<compilation>
<assemblies>
<add assembly="System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
</system.web>
</configuration>
- Assembly:
System.Transctions
- Version:
4.0.0.0
- Culture:
neutral
- PublicKeyToken:
B77A5C561934E089
(the low 8 bytes of the sha1 fingerprint of the public key)
Note: the PublicKeyToken (fingerprint of the signing certificate) is different from nearly ever other assembly in the .NET framework.
- most assembly signing certificate "public key token":
B03F5F7F11D50A3A
- the
System.Transactions
assembly public key token:B77A5C561934E089
精彩评论