S
subha
I get a timeout when calling a webservice from C#. Works fine in
browser. I am not doing anything out of the box. The same works on
other machines but not on mine. I tried writing HelloWorld service and
calling it and I get the same error.
I saw other posts relating to this (one talked about SETI and other
screen savers but I don't know which of my programs could be the
reason. I have tried uninstalling most of them).
I tried changing the localhost in the Reference.cs to my ipconfig and
I get a
Socket Exception.
Any pointers will help..
WITH IPADDRESS THE ERROR IS
'WindowsApplication1.exe': Loaded 'oevrvyg9', No symbols loaded.
A first chance exception of type 'System.NullReferenceException'
occurred in system.dll
Additional information: Object reference not set to an instance of an
object.
A first chance exception of type 'System.Net.Sockets.SocketException'
occurred in system.dll
Additional information: An established connection was aborted by the
software in your host machine
A first chance exception of type 'System.IO.IOException' occurred in
system.dll
Additional information: Unable to read data from the transport
connection.
A first chance exception of type 'System.Net.WebException' occurred in
system.dll
Additional information: The underlying connection was closed: An
unexpected error occurred on a receive.
A first chance 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.
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest
request)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest
request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at WindowsApplication1.localhost.Service1.HelloWorld() in
D:\WindowsApplication1\Web References\localhost\Reference.cs:line 37
at WindowsApplication1.Form1.cmdBegin_Click(Object sender,
EventArgs e) in d:\windowsapplication1\form1.cs:line 97
WITH LOCAL HOST THE ERROR IS
Additional information: The operation has timed-out.
A first chance exception of type 'System.Net.WebException' occurred in
system.dll
Additional information: The operation has timed-out.
A first chance exception of type 'System.Net.WebException' occurred in
system.web.services.dll
Additional information: The operation has timed-out.
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest
request)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest
request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at WindowsApplication1.localhost.Service1.HelloWorld() in
D:\WindowsApplication1\Web References\localhost\Reference.cs:line 37
at WindowsApplication1.Form1.cmdBegin_Click(Object sender,
EventArgs e) in d:\windowsapplication1\form1.cs:line 97
browser. I am not doing anything out of the box. The same works on
other machines but not on mine. I tried writing HelloWorld service and
calling it and I get the same error.
I saw other posts relating to this (one talked about SETI and other
screen savers but I don't know which of my programs could be the
reason. I have tried uninstalling most of them).
I tried changing the localhost in the Reference.cs to my ipconfig and
I get a
Socket Exception.
Any pointers will help..
WITH IPADDRESS THE ERROR IS
'WindowsApplication1.exe': Loaded 'oevrvyg9', No symbols loaded.
A first chance exception of type 'System.NullReferenceException'
occurred in system.dll
Additional information: Object reference not set to an instance of an
object.
A first chance exception of type 'System.Net.Sockets.SocketException'
occurred in system.dll
Additional information: An established connection was aborted by the
software in your host machine
A first chance exception of type 'System.IO.IOException' occurred in
system.dll
Additional information: Unable to read data from the transport
connection.
A first chance exception of type 'System.Net.WebException' occurred in
system.dll
Additional information: The underlying connection was closed: An
unexpected error occurred on a receive.
A first chance 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.
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest
request)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest
request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at WindowsApplication1.localhost.Service1.HelloWorld() in
D:\WindowsApplication1\Web References\localhost\Reference.cs:line 37
at WindowsApplication1.Form1.cmdBegin_Click(Object sender,
EventArgs e) in d:\windowsapplication1\form1.cs:line 97
WITH LOCAL HOST THE ERROR IS
Additional information: The operation has timed-out.
A first chance exception of type 'System.Net.WebException' occurred in
system.dll
Additional information: The operation has timed-out.
A first chance exception of type 'System.Net.WebException' occurred in
system.web.services.dll
Additional information: The operation has timed-out.
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest
request)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest
request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at WindowsApplication1.localhost.Service1.HelloWorld() in
D:\WindowsApplication1\Web References\localhost\Reference.cs:line 37
at WindowsApplication1.Form1.cmdBegin_Click(Object sender,
EventArgs e) in d:\windowsapplication1\form1.cs:line 97