Solved

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

Posted on 2008-06-19
2
1,184 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 500 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

762 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now