The type or namespace name 'Transactions' does not exist in the namespace 'System' (are you missing an assembly reference?) - C# ASP.NET -


we have c# asp.net web application uses system.transactions namespace.

using system.transactions; 

this works fine when developing locally - had add reference first going website --> add reference...

the problem after deploying web host (copying on ftp), host doesn't know reference.

description: error occurred during compilation of resource required service request. please review following specific error details , modify source code appropriately.  compiler error message: cs0234: type or namespace name 'transactions' not exist in namespace 'system' (are missing assembly reference?) 

working in visual web developer express 2010, don't have references folder built in. saw solution: https://stackoverflow.com/a/13035466/2178080 suggests (but doesn't recommend) copying dll application folder.

i'm bit new deploying asp , not sure how include system.transactions library host can find reference. has run issue?

edit: went route of copying dll site along application. steps this:

  1. copy system.transactions.dll local system.
  2. paste bin folder.
  3. the objects referenced in assembly must use qualified name.

as solution listed not recommended, still open other solutions.

edit2: grant , chris helped me understand working web site , not web application. grant helped specifics of web site problem.

your problem due published site not bringing system.transactions.dll along it, points "copy local" being set false , dll not copying bin folder.

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


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -