can't find webservice using IP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?ZmFpcnl2b2ljZQ==?=

    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 "downloadin g 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
  • Alberto Poblacion

    #2
    Re: can't find webservice using IP

    "fairyvoice " <fairyvoice@dis cussions.micros oft.comwrote in message
    news:E477FDF2-0128-444C-80A4-E571A7120505@mi crosoft.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 "downloadin g 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.

    Comment

    • =?Utf-8?B?ZmFpcnl2b2ljZQ==?=

      #3
      Re: can't find webservice using IP

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

      Comment

      • =?Utf-8?B?ZmFpcnl2b2ljZQ==?=

        #4
        Re: can't find webservice using IP

        Thanks, it is my first time dealing with

        Comment

        • Alberto Poblacion

          #5
          Re: can't find webservice using IP

          "fairyvoice " <fairyvoice@dis cussions.micros oft.comwrote in message
          news:F36CB8C6-75C2-4994-9101-11DA9B3B539A@mi crosoft.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.

          Comment

          Working...