?
Solved

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

Posted on 2008-06-19
2
Medium Priority
?
1,203 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 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

801 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