The following is the error message when I try to call the simple web service function echo():
[WebMethod(Description="Th
is method returns what was sent.")]
public DataSet echo(DataSet rq)
{
return rq;
}
This used to work fine. I have tried disabling windows firewall. Using AVG free, and spybot.
Doesn't seem to reach the code on the "server" side - both the client and server are the same machine (localhost)
The error message:
Server Error in '/ThelenWebTest' Application.
--------------------------
----------
----------
----------
----------
----------
----
An established connection was aborted by the software in your host machine
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Sockets.SocketE
xception: An established connection was aborted by the software in your host machine
Source Error:
Line 50: [System.Web.Services.Proto
cols.SoapD
ocumentMet
hodAttribu
te("
http://Thelen/XmlWebServices/echo", RequestNamespace="
http://Thelen/XmlWebServices/", ResponseNamespace="
http://Thelen/XmlWebServices/", Use=System.Web.Services.De
scription.
SoapBindin
gUse.Liter
al, ParameterStyle=System.Web.
Services.P
rotocols.S
oapParamet
erStyle.Wr
apped)]
Line 51: public System.Data.DataSet echo(System.Data.DataSet rq) {
Line 52: object[] results = this.Invoke("echo", new object[] {
Line 53: rq});
Line 54: return ((System.Data.DataSet)(res
ults[0]));
Source File: c:\WINDOWS\Microsoft.NET\F
ramework\v
2.0.50727\
Temporary ASP.NET Files\thelenwebtest\46a177
cf\a002177
b\App_WebR
eferences.
to0fugsm.0
.cs Line: 52
Stack Trace:
[SocketException (0x2745): An established connection was aborted by the software in your host machine]
System.Net.Sockets.Socket.
Receive(By
te[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) +93
System.Net.Sockets.Network
Stream.Rea
d(Byte[] buffer, Int32 offset, Int32 size) +119
[IOException: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.]
System.Net.ConnectStream.R
ead(Byte[]
buffer, Int32 offset, Int32 size) +328
System.Net.HttpWebRequest.
MakeMemory
Stream(Str
eam stream) +221
[WebException: The underlying connection was closed: An unexpected error occurred on a receive.]
System.Web.Services.Protoc
ols.WebCli
entProtoco
l.GetWebRe
sponse(Web
Request request) +314
System.Web.Services.Protoc
ols.HttpWe
bClientPro
tocol.GetW
ebResponse
(WebReques
t request) +4
System.Web.Services.Protoc
ols.SoapHt
tpClientPr
otocol.Inv
oke(String
methodName, Object[] parameters) +172
ThelenWebTest.ThelenWebSer
vices.Serv
ice1.echo(
DataSet rq) in c:\WINDOWS\Microsoft.NET\F
ramework\v
2.0.50727\
Temporary ASP.NET Files\thelenwebtest\46a177
cf\a002177
b\App_WebR
eferences.
to0fugsm.0
.cs:52
ThelenWebTest.TimeAdd.AddT
ime_Click(
Object sender, EventArgs e) in c:\Inetpub\wwwroot\ThelenW
ebTest\Tim
eAdd.aspx.
cs:90
System.Web.UI.WebControls.
Button.OnC
lick(Event
Args e) +105
System.Web.UI.WebControls.
Button.Rai
sePostBack
Event(Stri
ng eventArgument) +107
System.Web.UI.WebControls.
Button.Sys
tem.Web.UI
.IPostBack
EventHandl
er.RaisePo
stBackEven
t(String eventArgument) +7
System.Web.UI.Page.RaisePo
stBackEven
t(IPostBac
kEventHand
ler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePo
stBackEven
t(NameValu
eCollectio
n postData) +33
System.Web.UI.Page.Process
RequestMai
n(Boolean includeStagesBeforeAsyncPo
int, Boolean includeStagesAfterAsyncPoi
nt) +1746
--------------------------
----------
----------
----------
----------
----------
----
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
Start Free Trial