|
| The underlying connection was closed : when calling external web service |
|
|
|
|
| Messages |
|
Related Types |
This message was discovered on microsoft.public.dotnet.framework.aspnet.webservices.
| Hans VDG |
Hi,
I added a web reference to my project. ( received disco & wsdl file )
Then Created the class in my asp.net page. Called the method. After a couple of minutes : ERROR The underlying connection was closed .....
A friend of my tryed it at home ( everything works ) . Another friend tryed it at his work ( doesn't work ) .
I'm developping in Windows XP + Visual Studio.NET Enterprise.
Maybe it's a problem with some settings ???
PLEASE HELP.
PS : My home made services are working
|
|
|
| |
|
| |
| |
| Christian Weyer |
Hans,
could it be that there is a proxy or a firewall in between you and the target Web Service?
Just a thought ... Christian --------------------------------- .NET XML Web Services Repertory http://www.xmlwebservices.cc/ ---------------------------------
Hans VDG wrote:
[Original message clipped]
|
|
|
| |
|
| |
|
| |
| Tobin Titus [MS] |
Hello Hans,
This error is typical when connecting through a proxy server. You need to supply your client (the program consuming the web service) with the proper settings. You can do this either programmatically or through machine.config.
For a detailed description of how you can correct this problem, see the following Microsoft Knowledge Base article.
Q318140 PRB: Error when consuming Web service through an HTTP proxy serv http://support.microsoft.com/support/kb/articles/q318/1/40.asp
I hope this helps.
Tobin Titus, MCSD Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.
-------------------- From: "Hans VDG" <Click here to reveal e-mail address> Newsgroups: microsoft.public.dotnet.framework,microsoft.public.dotnet.framework.aspnet,m icrosoft.public.dotnet.framework.aspnet.webservices Subject: The underlying connection was closed : when calling external web service Lines: 21 X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <3rrd8.36797$Click here to reveal e-mail address> Date: Fri, 22 Feb 2002 13:10:23 GMT NNTP-Posting-Host: 213.118.64.177 X-Complaints-To: Click here to reveal e-mail address X-Trace: hebe.telenet-ops.be 1014383423 213.118.64.177 (Fri, 22 Feb 2002 14:10:23 CET) NNTP-Posting-Date: Fri, 22 Feb 2002 14:10:23 CET Organization: Telenet Internet Path: cpmsftngxa08!cpmsftngxa09!cpmsftngxa07!tkmsftngp01!newsfeed00.sul.t-online.d e!t-online.de!colt.net!newsfeeds.belnet.be!news.belnet.be!ossa.telenet-ops.b e!hebe.telenet-ops.be.POSTED!not-for-mail Xref: cpmsftngxa08 microsoft.public.dotnet.framework.aspnet:37536 microsoft.public.dotnet.framework.aspnet.webservices:5627 microsoft.public.dotnet.framework:11703 X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
Hi,
I added a web reference to my project. ( received disco & wsdl file )
Then Created the class in my asp.net page. Called the method. After a couple of minutes : ERROR The underlying connection was closed .....
A friend of my tryed it at home ( everything works ) . Another friend tryed it at his work ( doesn't work ) .
I'm developping in Windows XP + Visual Studio.NET Enterprise.
Maybe it's a problem with some settings ???
PLEASE HELP.
PS : My home made services are working
|
|
|
| |
|
|
| |
| |
| Tony Chen |
The link doesn't work, neither does id. has been moved? Thanks
"Tobin Titus [MS]" <Click here to reveal e-mail address> wrote in message news:4Dc4rF7uBHA.1516@cpmsftngxa08... [Original message clipped]
|
|
|
| |
|
| |
| |
| Tobin Titus [MS] |
SYMPTOMS ========
When you use a .NET client to consume a Web service through an HTTP proxy server, you may receive the following error message:
The underlying connection was closed: The remote name could not be resolved.
CAUSE ===== An HTTP proxy server exists between the Web service and the .NET client, and the proper proxy settings have not been configured.
RESOLUTION ========== To resolve this problem, supply the proper proxy configuration settings to the .NET client.
MORE INFORMATION ================ The following are the default settings in the Machine.config file:
<configuration> <system.net> <defaultProxy> <proxy usesystemdefault = "true" /> </defaultProxy> </system.net> </configuration>
If the default settings do not automatically detect the appropriate proxy server settings, you can change the [**at*(default settings or proxy server settings?)] settings explicity in the Machine.config or Web.config files, or you can change the settings programmatically.
The settings for the Machine.config or Web.config files are as follows:
<configuration> <system.net> <defaultProxy> <proxy usesystemdefault = "false" proxyaddress="http://proxyserver" bypassonlocal="true" /> </defaultProxy> </system.net> </configuration>
To change the settings programmatically by using a WebProxy object, use the following sample code:
Using System.Net;
com.someserver.somewebservice.someclass MyWebServiceClass = new com.someserver.somewebservice.someclass();
IWebProxy proxyObject = new WebProxy("http://myproxyserver:80", true); MyWebServiceClass.Proxy = proxyObject;
MyWebServiceClass.MyWebMethod();
REFERENCES ========== For more information, see the following Microsoft Developer Network (MSDN) Web sites:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/ frlrfSystemNetIWebProxyClassTopic.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/ht ml/gngrfdefaultproxyelement.asp
Also look at the following KB article -
Q307220 HOW TO: Config XML Web Service Client for Proxy w/ .NET Framewk
I hope this helps.
Tobin Titus, MCSD Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights. -------------------- From: "Tony Chen" <Click here to reveal e-mail address> References: <3rrd8.36797$Click here to reveal e-mail address> <4Dc4rF7uBHA.1516@cpmsftngxa08> Subject: Re: The underlying connection was closed : when calling external web service Date: Fri, 22 Feb 2002 15:26:58 -0500 Lines: 83 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Message-ID: <ucEkU99uBHA.1600@tkmsftngp07> Newsgroups: microsoft.public.dotnet.framework.aspnet.webservices NNTP-Posting-Host: cpe0080c6ea9201.cpe.net.cable.rogers.com 24.102.87.167 Path: cpmsftngxa07!tkmsftngxs01!tkmsftngp01!tkmsftngp07 Xref: cpmsftngxa07 microsoft.public.dotnet.framework.aspnet.webservices:5658 X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
The link doesn't work, neither does id. has been moved? Thanks
"Tobin Titus [MS]" <Click here to reveal e-mail address> wrote in message news:4Dc4rF7uBHA.1516@cpmsftngxa08... [Original message clipped]
|
|
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
BootFX
Reliable and powerful .NET application framework. |
|
|
|
|
|
|