The type or namespace name 'Script' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
it gives error in the following line "System.Web.Script.Services.ScriptService"
i have included name space of system.web
The type or namespace name 'Script' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
it gives error in the following line "System.Web.Script.Services.ScriptService"
i have included name space of system.web
Google is your best friend. MSDN second.
ScriptServiceAttribute Class
Namespace: System.Web.Script.Services
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
did you add reference to this dll?
Two problems:
System.Web.Script.Services.ScriptServiceAttribute
exists in the System.Web.Extensions
assembly, not System.Web
. Make sure you're referencing the System.Web.Extensions
assembly in your project.Once I referenced System.Web.Extensions, the following compiled for me:
System.Web.Script.Services.ScriptServiceAttribute ss;