Re: can't find webservice using IP

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"fairyvoice" <fairyvoice@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:E477FDF2-0128-444C-80A4-E571A7120505@xxxxxxxxxxxxxxxx
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.

.



Relevant Pages

  • Re: What is tempuri.org and why am I getting: "Unable to connect to remote server"
    ... I actually tried that and changed tempuri.org to localhost and i got ... It has to be a valid URL correct? ... namespace a name like MyNamespace. ... WebService Attribute in MSDN for m ore details. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Example calling an external webservice
    ... you can create other services or connect to the one you want to consume. ... I've added the webservice to my project, ... For example I have found the below but that's with localhost. ... Marc Wentink ...
    (microsoft.public.dotnet.framework.aspnet)
  • asmx file visibility
    ... On my machine I developed a WebService on localhost and if I browse the asmx ... not have a user interface. ...
    (microsoft.public.dotnet.framework.webservices)
  • RE: asmx file visibility
    ... If one opens the asmx file with a text editor, ... Designer page with a couple of links and of course a WebService does not have ... In both cases we are using localhost and not ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Connecting to a webservice...Lan issues!
    ... > p.s my webservice is actually located on my local machine i.e ... Make sure localhost is in your exclude list. ... "Programming is an art form that fights back" ...
    (microsoft.public.dotnet.framework.webservices)