The underlying connection was closed

From: MattM (MattM_at_discussions.microsoft.com)
Date: 10/27/04


Date: Wed, 27 Oct 2004 07:05:09 -0700

I am getting the "The underlying connection was closed: Unable to connect to
the remote server" message when trying to connect an ASPX page to a simple
Hello World web service. I have read a few posts on this topic but my
situation is different. The problem appears to be a setting with my test
server. The basic scenario is it works when the URL is the short server name
(testserver) but fails with the full server name (testserver.abc.com).

Here's a summary of what works and what doesn't:

These Situations Work
    * ASPX and Web Service on localhost
    * ASPX on localhost / Web Service on test server
    * ASPX and Web Service on test server / use short URL (testserver)

This fails with the error message
    * ASPX and Web Service on test server / use full URL (testserver.abc.com)

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. Everything I read about this
message says it's a proxy issue so I'm lost as to what to research.

Can anyone think of what it may be? I'd at least like to know what to
investigate.



Relevant Pages

  • Re: WinForms application fails making SOAP call on users desktop inside corporate network.
    ... intranet to a server that sits on the Internet. ... through the same Proxy. ... configuration here at work going through the corporate proxy, and at home, ... end user open a browser and see if they can hit the web service wsdl. ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Web Service Implementation Security Question
    ... Server was unable to process ... CompilerParameters parameters, Assembly assembly, Hashtable assemblies) at ... > As for the security problems regarding on using TypedDAtaset in asp.net ... Web Service Implementation Security Question ...
    (microsoft.public.inetserver.iis.security)
  • Re: GP in Pocket PCs
    ... Microsoft Global Technical Support Center ... |> b) The web service is running on a server which is part of the domain. ... |> proxy. ...
    (microsoft.public.windows.group_policy)
  • The underlying connection was closed: Unable to connect to the remote server
    ... ASPX and Web Service on localhost --> works ... ASPX on localhost / Web Service on test server --> ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Permission Errors
    ... >a domain account so that it can be validated on the win2k server machine. ... However I have discovered that I can deploy the web service to the W2K ... domain server and there it runs with no problems, ... for me to decide that the new XP dev machine is up and usable. ...
    (microsoft.public.dotnet.general)