can't find webservice using IP

F

fairyvoice

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
 
A

Alberto Poblacion

fairyvoice said:
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.
 
F

fairyvoice

Thank you Alberto.
Do yo mean i have to publish it in the IIS? It seem i do create it in the
file system
 
A

Alberto Poblacion

fairyvoice said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top