desperate call for help: "The underlying connection was closed: Unable to connect to the remote server.

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default desperate call for help: "The underlying connection was closed: Unable to connect to the remote server.

    I have a web service running on a server.

    With my brower, I can get the asmx page and get the expected output on the
    page.

    With a console application, I can call the webservice and retrieve from it
    what I am supposed to retrieve.

    Only when an ASP.NET application calls the web service, do I get the "the
    underlying connection was closed: Unable to connect to the remote server"
    error message.

    The only relevent msdn page
    ([url]http://support.microsoft.com/default.aspx?scid=kb;en-us;819450[/url]) isn't very
    helpful. It says MS has confirmed it as a bug, and says to contact them
    for a fix!!!! And there might be a charge! ARE YOU KIDDING ME?

    The last time I contacted them, it was like talking to a wall.

    Thanks. Any help would be greatly appreciated.


    David Guest

  2. Similar Questions and Discussions

    1. Error: "The underlying connection was closed: Unable to connect to the remote server."
      We have developed a Web Service with vb.net using VS 2003 on a Windows 2003 Server. The Test application that we developed is passing 6 parameters...
    2. The underlying connection was closed: Unable to connect to the remote server.
      Hello, I'm a novice to .net environment. I'm trying to make use of a webservice in my asp.net client application. I successfully added reference...
    3. webservice problem: The underlying connection was closed: Unable to connect to the remote server
      Hello All! I also have the unfamous error described in subject. I created the HelloWorld webservice simplest way by uncommenting the HelloWorld...
    4. System.Net.WebException: The underlying connection was closed: The remote name could not be resolved.
      This is driving me crazy!!!! I started working on an application in C# for ASP.Net and realized that I needed a web service. I created the web...
    5. The underlying connection was closed: Unable to connect to the remote server
      These code generates the error: WebRequest request = WebRequest.Create("http://www.yahoo.com"); WebResponse response = request.GetResponse(); ...
  3. #2

    Default RE: desperate call for help: "The underlying connection was closed: Unable to connect to the remote server.

    Hi David,

    Have you tried setting the proxy-side keep alives to "false"? This may
    remedy the situation.

    Dan Rogers
    Microsoft Corporation
    --------------------
    >From: "David" <spammersgohome@spammersgohome.com>
    >Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
    >Subject: desperate call for help: "The underlying connection was closed:
    Unable to connect to the remote server.
    >Lines: 22
    >X-Priority: 3
    >X-MSMail-Priority: Normal
    >X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
    >X-RFC2646: Format=Flowed; Original
    >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
    >Message-ID: <iABod.101790$Kl3.62295@twister.socal.rr.com>
    >Date: Tue, 23 Nov 2004 07:23:58 GMT
    >NNTP-Posting-Host: 67.52.118.62
    >X-Complaints-To: [email]abuse@rr.com[/email]
    >X-Trace: twister.socal.rr.com 1101194638 67.52.118.62 (Mon, 22 Nov 2004
    23:23:58 PST)
    >NNTP-Posting-Date: Mon, 22 Nov 2004 23:23:58 PST
    >Organization: RoadRunner - West
    >Path:
    cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFT NGP08.phx.gbl!news-out.cwi
    x.com!newsfeed.cwix.com!news.umass.edu!arclight.uo regon.edu!hammer.uoregon.e
    du!logbridge.uoregon.edu!tethys.csu.net!newshub.sd su.edu!elnk-nf2-pas!elnk-p
    as-nf1!newsfeed.earthlink.net!cyclone.socal.rr.com!cy clone2.kc.rr.com!news2.
    kc.rr.com!twister.socal.rr.com.POSTED!53ab2750!not-for-mail
    >Xref: cpmsftngxa10.phx.gbl
    microsoft.public.dotnet.framework.aspnet.webservic es:26763
    >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
    >
    >I have a web service running on a server.
    >
    >With my brower, I can get the asmx page and get the expected output on the
    >page.
    >
    >With a console application, I can call the webservice and retrieve from it
    >what I am supposed to retrieve.
    >
    >Only when an ASP.NET application calls the web service, do I get the "the
    >underlying connection was closed: Unable to connect to the remote server"
    >error message.
    >
    >The only relevent msdn page
    >([url]http://support.microsoft.com/default.aspx?scid=kb;en-us;819450[/url]) isn't
    very
    >helpful. It says MS has confirmed it as a bug, and says to contact them
    >for a fix!!!! And there might be a charge! ARE YOU KIDDING ME?
    >
    >The last time I contacted them, it was like talking to a wall.
    >
    >Thanks. Any help would be greatly appreciated.
    >
    >
    >
    Dan Rogers Guest

  4. #3

    Default Re: desperate call for help: "The underlying connection was closed: Unable to connect to the remote server.

    Is that a IIS setting?

    Do you mean HTTP Keep-Alives enabled? I tried that and it still does not
    work.

    "Dan Rogers" <danro@microsoft.com> wrote in message
    news:R5Xshba0EHA.1952@cpmsftngxa10.phx.gbl...
    > Hi David,
    >
    > Have you tried setting the proxy-side keep alives to "false"? This may
    > remedy the situation.
    >
    > Dan Rogers
    > Microsoft Corporation
    > --------------------
    >>From: "David" <spammersgohome@spammersgohome.com>
    >>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
    >>Subject: desperate call for help: "The underlying connection was closed:
    > Unable to connect to the remote server.
    >>Lines: 22
    >>X-Priority: 3
    >>X-MSMail-Priority: Normal
    >>X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
    >>X-RFC2646: Format=Flowed; Original
    >>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
    >>Message-ID: <iABod.101790$Kl3.62295@twister.socal.rr.com>
    >>Date: Tue, 23 Nov 2004 07:23:58 GMT
    >>NNTP-Posting-Host: 67.52.118.62
    >>X-Complaints-To: [email]abuse@rr.com[/email]
    >>X-Trace: twister.socal.rr.com 1101194638 67.52.118.62 (Mon, 22 Nov 2004
    > 23:23:58 PST)
    >>NNTP-Posting-Date: Mon, 22 Nov 2004 23:23:58 PST
    >>Organization: RoadRunner - West
    >>Path:
    > cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFT NGP08.phx.gbl!news-out.cwi
    > x.com!newsfeed.cwix.com!news.umass.edu!arclight.uo regon.edu!hammer.uoregon.e
    > du!logbridge.uoregon.edu!tethys.csu.net!newshub.sd su.edu!elnk-nf2-pas!elnk-p
    > as-nf1!newsfeed.earthlink.net!cyclone.socal.rr.com!cy clone2.kc.rr.com!news2.
    > kc.rr.com!twister.socal.rr.com.POSTED!53ab2750!not-for-mail
    >>Xref: cpmsftngxa10.phx.gbl
    > microsoft.public.dotnet.framework.aspnet.webservic es:26763
    >>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
    >>
    >>I have a web service running on a server.
    >>
    >>With my brower, I can get the asmx page and get the expected output on the
    >>page.
    >>
    >>With a console application, I can call the webservice and retrieve from it
    >>what I am supposed to retrieve.
    >>
    >>Only when an ASP.NET application calls the web service, do I get the "the
    >>underlying connection was closed: Unable to connect to the remote server"
    >>error message.
    >>
    >>The only relevent msdn page
    >>([url]http://support.microsoft.com/default.aspx?scid=kb;en-us;819450[/url]) isn't
    > very
    >>helpful. It says MS has confirmed it as a bug, and says to contact them
    >>for a fix!!!! And there might be a charge! ARE YOU KIDDING ME?
    >>
    >>The last time I contacted them, it was like talking to a wall.
    >>
    >>Thanks. Any help would be greatly appreciated.
    >>
    >>
    >>
    >

    David Guest

  5. #4

    Default Re: desperate call for help: "The underlying connection was closed: Unable to connect to the remote server.

    Hi David,

    No, not on the IIS side. On the proxy side. In the proxy that was
    generated when you did an add-web-reference, there is a setting that
    governs when/if the proxy requests a keep alive.

    I hope this helps

    Dan Rogers
    Microsoft Corporation
    --------------------
    >From: "David" <spammersgohome@spammersgohome.com>
    >Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
    >References: <iABod.101790$Kl3.62295@twister.socal.rr.com>
    <R5Xshba0EHA.1952@cpmsftngxa10.phx.gbl>
    >Subject: Re: desperate call for help: "The underlying connection was
    closed: Unable to connect to the remote server.
    >Lines: 70
    >X-Priority: 3
    >X-MSMail-Priority: Normal
    >X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
    >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
    >X-RFC2646: Format=Flowed; Original
    >Message-ID: <3YRpd.112042$Kl3.57133@twister.socal.rr.com>
    >Date: Sat, 27 Nov 2004 02:50:39 GMT
    >NNTP-Posting-Host: 67.52.118.62
    >X-Complaints-To: [email]abuse@rr.com[/email]
    >X-Trace: twister.socal.rr.com 1101523839 67.52.118.62 (Fri, 26 Nov 2004
    18:50:39 PST)
    >NNTP-Posting-Date: Fri, 26 Nov 2004 18:50:39 PST
    >Organization: RoadRunner - West
    >Path:
    cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!tornado .fastwebnet.it!tiscali!new
    sfeed1.ip.tiscali.net!news.glorb.com!newshub.sdsu. edu!elnk-nf2-pas!elnk-pas-
    nf1!newsfeed.earthlink.net!cyclone.socal.rr.com!cy clone2.kc.rr.com!news2.kc.
    rr.com!twister.socal.rr.com.POSTED!53ab2750!not-for-mail
    >Xref: cpmsftngxa10.phx.gbl
    microsoft.public.dotnet.framework.aspnet.webservic es:26825
    >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
    >
    >Is that a IIS setting?
    >
    >Do you mean HTTP Keep-Alives enabled? I tried that and it still does not
    >work.
    >
    >"Dan Rogers" <danro@microsoft.com> wrote in message
    >news:R5Xshba0EHA.1952@cpmsftngxa10.phx.gbl...
    >> Hi David,
    >>
    >> Have you tried setting the proxy-side keep alives to "false"? This may
    >> remedy the situation.
    >>
    >> Dan Rogers
    >> Microsoft Corporation
    >> --------------------
    >>>From: "David" <spammersgohome@spammersgohome.com>
    >>>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
    >>>Subject: desperate call for help: "The underlying connection was closed:
    >> Unable to connect to the remote server.
    >>>Lines: 22
    >>>X-Priority: 3
    >>>X-MSMail-Priority: Normal
    >>>X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
    >>>X-RFC2646: Format=Flowed; Original
    >>>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
    >>>Message-ID: <iABod.101790$Kl3.62295@twister.socal.rr.com>
    >>>Date: Tue, 23 Nov 2004 07:23:58 GMT
    >>>NNTP-Posting-Host: 67.52.118.62
    >>>X-Complaints-To: [email]abuse@rr.com[/email]
    >>>X-Trace: twister.socal.rr.com 1101194638 67.52.118.62 (Mon, 22 Nov 2004
    >> 23:23:58 PST)
    >>>NNTP-Posting-Date: Mon, 22 Nov 2004 23:23:58 PST
    >>>Organization: RoadRunner - West
    >>>Path:
    >>
    cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFT NGP08.phx.gbl!news-out.cwi
    >>
    x.com!newsfeed.cwix.com!news.umass.edu!arclight.uo regon.edu!hammer.uoregon.e
    >>
    du!logbridge.uoregon.edu!tethys.csu.net!newshub.sd su.edu!elnk-nf2-pas!elnk-p
    >>
    as-nf1!newsfeed.earthlink.net!cyclone.socal.rr.com!cy clone2.kc.rr.com!news2.
    >> kc.rr.com!twister.socal.rr.com.POSTED!53ab2750!not-for-mail
    >>>Xref: cpmsftngxa10.phx.gbl
    >> microsoft.public.dotnet.framework.aspnet.webservic es:26763
    >>>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
    >>>
    >>>I have a web service running on a server.
    >>>
    >>>With my brower, I can get the asmx page and get the expected output on
    the
    >>>page.
    >>>
    >>>With a console application, I can call the webservice and retrieve from
    it
    >>>what I am supposed to retrieve.
    >>>
    >>>Only when an ASP.NET application calls the web service, do I get the "the
    >>>underlying connection was closed: Unable to connect to the remote
    server"
    >>>error message.
    >>>
    >>>The only relevent msdn page
    >>>([url]http://support.microsoft.com/default.aspx?scid=kb;en-us;819450[/url]) isn't
    >> very
    >>>helpful. It says MS has confirmed it as a bug, and says to contact them
    >>>for a fix!!!! And there might be a charge! ARE YOU KIDDING ME?
    >>>
    >>>The last time I contacted them, it was like talking to a wall.
    >>>
    >>>Thanks. Any help would be greatly appreciated.
    >>>
    >>>
    >>>
    >>
    >
    >
    >
    Dan Rogers Guest

  6. #5

    Default Re: desperate call for help: "The underlying connection was closed: Unable to connec

    Quote Originally Posted by David View Post
    Is that a IIS setting?

    Do you mean HTTP Keep-Alives enabled? I tried that and it still does not
    work.

    "Dan Rogers" <danro@microsoft.com> wrote in message
    news:R5Xshba0EHA.1952@cpmsftngxa10.phx.gbl...
    Hi,
    Iam aslo facing the same problem, web srervice URL is working fine if i browse using IE, and web service works properly in console application but doesnot work using windows service. I get error mesage as "Unable to connect to remote server".

    Please reply asap.

    Thanks,
    Rajesh
    Unregistered Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139