View Single Post
  #1 (permalink)  
Old May 16th, 2004, 06:23 AM
okll okll is offline
Registered User
 
Join Date: May 2004
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default can not connect to the web-service remote server?


I am a new programmer on webservice.

 now I can program and test them inside in my PC with http://localhost(both aspx files and webservice are in my PC), and can use WSDL.exe to generate proxy class for those webservice on internet, but my program (those files inside Virual directory on my PC) can not link with the webservice on internet!


I download your two program http://www.15seconds.com/issue/020213.htm and http://www.15seconds.com/Issue/020117.htm, they also can not link with those webservice on internet.

I use VS.NET and C# to program and .NET FRAMeSDK 1.1, OS is Window 2000 server, IIS 5, and IE 6 as internet explore.

These web program alway give below erro:

Exception Details: System.Net.WebException: The underlying connection was closed: Unable to connect to the remote server.
 Stack Trace:

[WebException: The underlying connection was closed: Unable to connect to the remote server.]
   System.Net.HttpWebRequest.CheckFinalStatus() +673
   System.Net.HttpWebRequest.EndGetRequestStream(IAsy ncResult asyncResult) +74
   System.Net.HttpWebRequest.GetRequestStream() +132
   System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String methodName, Object[] parameters) +105


-------------------------

My PC inside intranet, but IP is full-ip assigned dynamicaly when login to intranet.

I can not unstand Why "The underlying connection was closed.Unable to connect to the remote server....", I can use IE to my program runing correct on my web-site in ISP, and use WSDL.exe to generate proxy-class in my PC, Why my web-program in localhost can not connect to the remote server?

Thanks ahead for you help,


Reply With Quote