c# - The type or namespace name 'Transactions' does not exist in the namespace 'System' -


this in asp.net web application, visual studio 2013. solution composed of several projects. have code in library project has using system.transactions, , it's worked months.

today added same using system.transactions in code in web application project, , fails error message below:

the type or namespace name 'transactions' not exist in namespace 'system' 

here few things i've tried:

  • added reference system.transactions.
  • verified referenced dll file same in both projects.
  • changed framework 4 4.5 , back.
  • verified projects using same framework version.
  • cleaned , rebuilt solution.
  • quit visual studio, deleted files in appdata>local>temp, rebuilt.
  • restarted pc.

so, upshot using system.transactions works fine in 1 project not another, though both projects in same solution.

any suggestions?

edit: here's oddity that's not additional help, here goes:

  • when build project, there no errors. is, using system.transactions compiles fine.
  • if run application, bombs , error appears in browser window. vs code window still shows no errors.
  • if edit using system.transactions or add code var x = system..., errors appear in using system.transactions.

** edit:** question marked duplicate. isn't -- proposed duplicate solved question browsing reference. had tried , didn't help. in case, had use "copy local" option.

refer answer mark hall

there microsoft connect entry posted this. there comment suggests can browse it. path given is:

c:\program files (x86)\reference assemblies\microsoft\framework.netframework\v4.5\system.transactions.dll

just add reference browsing path

if did not work, go references -> system.transactions , make sure on properties reference "copy local" set true.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -