Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
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 about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

618 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