Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new to ASP.Net. I have written a webservice in C# .net. It is compiled and built successful and while debugging, I can see it running in the system tray. But when I try to communicate with the webservice from my own PC using localhost address, I am not getting response. Is it due to IIS server not installed on my PC. I dont know whether IIS is needed to be installed for hosting a web service. Let me know if IIS is needed to be installed? If not what could be the problem?
Posted

Every web application need to be deployed on some web server. While working on VS IDE, it provides it own web development server. So if you have service in the same solution then you can add reference and you don't need IIS I guess. But if you have another project and want to use directly from localhost, you need host it in IIS.

One check you can try. Type the URL of webservice on IE and check whether you'll able the wsdl and method
 
Share this answer
 
what is the URL you are using when accessing the webservice from your PC? Is it like, http://localhost/serviceName? If you are hosting the service on another machine, you should access it like this, http://hostIPorHostName/serviceName.
 
Share this answer
 
Thanks for quick reply :)

Yeah, I am able to see the list of services from the URL. I am able to invoke the services from the browser. But it is not working from application where I have added the web reference for the webservice.
 
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