I've written a simple web service and deployed it to a server on my local
network. However, when I try to add a web reference to it in a VS2005
project on my dev machine, I am unable to. When I use the "Add Web
Reference" dialog and enter the URL to the web service, I get a "The page
cannot be displayed" error.
I'm guessing it's one of two possibilities:
1) I'm using the wrong path. When developing and testing the web service on
my dev machine I used the //localhost/folder/service.asmx path to reference
it. Now that I've deployed it to the server, I am using a path of //server
ip address/folder/service.asmx. Is this the correct path to use?
2) The server has an incorrect IIS config or setting. Unfortunately, I
don't know very much about IIS. Off the top of my head I can tell you that
the setup is IIS 5.1 running on WinXP Pro. I'll, of course, provide any
information you need that might help resolve this issue.
Thank you.
- Chris
dei1c3 - 01 Nov 2005 21:56 GMT
Ugh. It turns out Windows Firewall was the problem. Port 80 was being
blocked (as it is by default) so OF COURSE I couldn't get to the web service
from another machine.
Anyway, embarassing, but I figured I would post this in case someone else
came looking for a solution to the same problem.
> I've written a simple web service and deployed it to a server on my local
> network. However, when I try to add a web reference to it in a VS2005
[quoted text clipped - 17 lines]
>
> - Chris