Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
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 28-Aug-11 22:20pm
ameem85512
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Thanks for quick reply Smile | :)
 
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.
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 380
1 OriginalGriff 250
2 DamithSL 210
3 Kornfeld Eliyahu Peter 200
4 Peter Leow 95
0 OriginalGriff 7,315
1 DamithSL 5,199
2 Sergey Alexandrovich Kryukov 4,917
3 Maciej Los 4,866
4 Kornfeld Eliyahu Peter 4,514


Advertise | Privacy | Mobile
Web04 | 2.8.141223.1 | Last Updated 29 Aug 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100