WebService problem : The underlying connection was closed: An un..

G

Guest

Hello !
I have a WebService.
When I execute WS in browser on local machine - its OK!
When I execute WS in browser on the server machine /with remote desktop/ -
its OK!
When I execute WebService in WindowsForms app on the local machine /app and
WS/ - its OK !
But when I execute the Web service/server machine/ from WindowsForms app
/local machine/, it gives me this error :

" An unhandled exception of type 'System.Net.WebException' occurred in
system.web.services.dll
Additional information: The underlying connection was closed: An unexpected
error occurred on a receive. "

Do you know where is the problem and how can I fix it ???
 
G

Guest

Hello again !
I try what you write to me, but the error is still the same ...
Here I paste code how I using it :

//Creating object with the WebService Uri
HttpWebRequest wr =
(HttpWebRequest)WebRequest.Create("http://.../webservices");
wr.KeepAlive = false;

s = new MyWebService ();
s.Timeout = -1;
str = s.MyWSmethod() // <--- here is the error

If I'm wrong with something - please write me...
Thank you in advance!
Toma
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top