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:
- copy system.transactions.dll local system.
- paste bin folder.
- 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.