Solved

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

Posted on 2008-06-19
2
1,196 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

726 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