?
Solved

Can't Get WebService to run.  (was working previously)

Posted on 2008-06-19
2
Medium Priority
?
1,207 Views
Last Modified: 2013-11-18
The following is the error message when I try to call the simple web service function echo():
            [WebMethod(Description="This 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.SocketException: An established connection was aborted by the software in your host machine

Source Error:


Line 50:         [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://Thelen/XmlWebServices/echo", RequestNamespace="http://Thelen/XmlWebServices/", ResponseNamespace="http://Thelen/XmlWebServices/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
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)(results[0]));
 

Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\thelenwebtest\46a177cf\a002177b\App_WebReferences.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(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) +93
   System.Net.Sockets.NetworkStream.Read(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.Read(Byte[] buffer, Int32 offset, Int32 size) +328
   System.Net.HttpWebRequest.MakeMemoryStream(Stream stream) +221

[WebException: The underlying connection was closed: An unexpected error occurred on a receive.]
   System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request) +314
   System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request) +4
   System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +172
   ThelenWebTest.ThelenWebServices.Service1.echo(DataSet rq) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\thelenwebtest\46a177cf\a002177b\App_WebReferences.to0fugsm.0.cs:52
   ThelenWebTest.TimeAdd.AddTime_Click(Object sender, EventArgs e) in c:\Inetpub\wwwroot\ThelenWebTest\TimeAdd.aspx.cs:90
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
0
Comment
Question by:GaryHoff
2 Comments
 
LVL 23

Accepted Solution

by:
Siva Prasanna Kumar earned 2000 total points
ID: 21828041
I think this is do with the firewall it self check the suggestions here

http://forums.msdn.microsoft.com/en/netfxnetcom/thread/17e3f2c9-c3f8-4531-b251-11fafe46ec14/

The best one in you case may be

"This is bcoz of the  antivirus which is blocked by the windows firewall, just add the antivirus to the windows firewall ,in windows firewall  Exception tab -->AddProgram and select the antivirus which is installed in your system .. this will solve the prob for ASP.net application .."
0
 
LVL 1

Author Closing Comment

by:GaryHoff
ID: 31468996
that was it.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question