469,609 Members | 1,124 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

can't find webservice using IP

Hi, i create an asp.net webservice, then reference this webservice in another
project in the same machine, it works well when using "localhost" to locate
the webservice but fails when using the ip address of my machine (neither
does using the hostname), it says "downloading webservice error because of
the destination machine rejecting..."
It seems not a development problem but one of the windows configuration, i
just hope get some help here.
the running env is vista+vs2008, and there are two net devices available,
and i am also confused about which ip i should use when access the webservice
from the net.
thanks in advanced
Oct 10 '08 #1
4 1844
"fairyvoice" <fa********@discussions.microsoft.comwrote in message
news:E4**********************************@microsof t.com...
Hi, i create an asp.net webservice, then reference this webservice in
another
project in the same machine, it works well when using "localhost" to
locate
the webservice but fails when using the ip address of my machine (neither
does using the hostname), it says "downloading webservice error because of
the destination machine rejecting..."
It seems not a development problem but one of the windows configuration, i
just hope get some help here.
the running env is vista+vs2008, and there are two net devices available,
and i am also confused about which ip i should use when access the
webservice
from the net.
Are you hosting the webservice in IIS, or in the internal server in
Visual Studio? It it is the latter, then you are out of luck: the internal
server only responds to localhost; you will need to move the webservice into
IIS if you wish to access it through your computer's external IP address.

Oct 10 '08 #2
Thank you Alberto.
Do yo mean i have to publish it in the IIS? It seem i do create it in the
file system
Oct 10 '08 #3
Thanks, it is my first time dealing with
Oct 10 '08 #4
"fairyvoice" <fa********@discussions.microsoft.comwrote in message
news:F3**********************************@microsof t.com...
Do yo mean i have to publish it in the IIS? It seem i do create it in the
file system
Yes, the option to create the project on the File System is only for
development. Visual Studio will run it on its internal server, but this is
not accessible from outside the computer. You will need to publish the
application on the local Internet Information Server, assuming that you have
it on your version of Windows.

Oct 10 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by pronto | last post: by
reply views Thread by stoffal | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.