The underlying connection was closed: Unable to connect to the remote server

From: Matt (anonymous_at_discussions.microsoft.com)
Date: 10/25/04


Date: Mon, 25 Oct 2004 13:37:57 -0700

I am getting this message

The underlying connection was closed: Unable to connect
to the remote server.

when trying to connect an ASPX page to a Hello World web
service. I have read a few posts on this topic but my
situation is different. In my case the following happens:

1) ASPX and Web Service on localhost --> works
2) ASPX on localhost / Web Service on test server -->
works
3) ASPX and Web Service on test server / use FQDN -->
fails
4) ASPX and Web Service on test server / use test server
name --> works

What I can't figure out is what is causing the failure.
If I use the FQDN (ex. testserver.abc.com) the error
message happens. If I replace the URL with the machine
name (ex. testserver) then it works fine.

Since this only happens when both the web page and the
web service are on the machine I don't think it's a proxy
issue. Can anyone think of what it may be? I'd at least
like to know what to investigate.



Relevant Pages

  • RE: WebException - ProtocolError from web service on new server
    ... test server log and the live sever. ... A successful return from the web service via the WinApp looks like: ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Passing user credintials from a web page to a web service.
    ... But when the aspx code is running on a different server than the web service, ... If I have impersonate set to false, the credentials are that of the IIS server running the aspx. ... If I set impersonate to true the credentials are null. ...
    (microsoft.public.dotnet.framework.aspnet)
  • The underlying connection was closed
    ... the remote server" message when trying to connect an ASPX page to a simple ... Hello World web service. ... message says it's a proxy issue so I'm lost as to what to research. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Passing user credintials from a web page to a web service.
    ... Using .Net/ASP 1.1 on a server using integrated authentication-- ... I have a web page (.aspx) that will collect some data from the user, ... But I want the web service to authenticate ... with the user's credentials, not the credentials of IIS serving the aspx ...
    (microsoft.public.dotnet.framework.aspnet)
  • Passing user credintials from a web page to a web service.
    ... Using .Net/ASP 1.1 on a server using integrated authentication-- ... I have a web page (.aspx) that will collect some data from the user, call a web service to get additional data, and then merge and format the data back to the user's browser. ... But I want the web service to authenticate with the user's credentials, not the credentials of IIS serving the aspx page. ...
    (microsoft.public.dotnet.framework.aspnet)