This is in an ASP.Net web application, with Visual Studio 2013. The solution is composed of several projects. I have code in a library project that has using System.Transactions
, and it's worked well for months.
Today I added the same using System.Transactions
in code in the web application project, and it fails with the error message below:
The type or namespace name 'Transactions' does not exist in the namespace 'System'
Here are a few things I've tried:
System.Transactions
.So, the upshot is that using System.Transactions
works fine in one project but not another, even though both projects are in the same solution.
Any suggestions?
EDIT: Here's an oddity that's probably not any additional help, but here goes:
using System.Transactions
compiles just fine.using System.Transactions
or add code like var x = System...
, the errors immediately appear in the using System.Transactions
.** EDIT:** This question was marked as duplicate. It isn't -- the proposed duplicate solved the question by browsing to the reference. I had already tried that and it didn't help. In my case, I had to use the "copy local" option.
Refer to this Answer By Mark Hall
There is a Microsoft Connect entry posted for this. There is a comment that suggests that you can browse for it. The path given is:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5\System.Transactions.dll
Just Add reference by browsing to this path
if this did not work, Go to References -> System.Transactions and make sure on the properties for this reference that "Copy Local" is set to True.
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 love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With