Click here to Skip to main content
15,939,243 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am getting this error while adding service in .net

The type or namespace name 'Service1' could not be found (are you missing a using directive or an assembly reference?)
can u help??

1 solution

Looks like you are missing the Web reference of the web service you want to consume in your application.
You need to add the Webservice-Reference to your project in order to create an object of that service and consume it.

Right click your project and use the option of 'Add Web Reference' to refer the web service. Once done, you should be able to create object of this service in your application.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900