tags:

views:

28

answers:

2

hi guys, I am using webservice.Its working in website.There is a namespace in webservics i.e using System.Web.Script.Services;

I have started a project in which i am not getting namespace 'using System.Web.Script.Services;' so that webservice is not working.Is there any options to get this namespace in project.Can anybody help?

A: 

You should add a reference at the project level, right click your project file in the solution explorer panel and select add reference. Then browser for the appropriate library.

You can see the msdn on how to add/remove references in visual studio.

Quintin Robinson
which dll i have to add as reference
+2  A: 

I believe you need to add a reference to System.Web.Extensions.

Ben Griswold
I have alredy done that.Its working in website.Problem is when implemented in project
If I understand correctly the deployed webservice is working, however, when you attempt to compile the associated project it fails due to the missing System.Web.Script.Service reference. Is this correct? If so, you want to reference the System.Web.Extensions.dll from your project.
Ben Griswold
Ben hit the nail on the head! +1
Cerebrus