I have a HelloWorld webservice that works on my IE browser. But, when
I add a webreference to it and call the HelloWorld method from my
WindowsFormsApp (return in C#), I get error messages. The error
messages differ depending on when I restart my machine.
RIGHT AFTER RESTART:
'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.Ge tWebResponse(WebRequest
request)
at System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebResponse(WebRequest
request)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.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
SECOND TIME:
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.Ge tWebResponse(WebRequest
request)
at System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebResponse(WebRequest
request)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.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