Server Error in '/' Application.

No connection could be made because the target machine actively refused it 127.0.0.1:8983

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: No connection could be made because the target machine actively refused it 127.0.0.1:8983

Source Error:


Line 595:        WebRequest request = WebRequest.Create(HttpUtility.UrlDecode(url));
Line 596:        request.ContentType = "application/json";
Line 597:        HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Line 598:
Line 599:        Stream receiveStream = response.GetResponseStream();

Source File: c:\inetpub\wwwroot\constantbusiness.com\SearchS.aspx.cs    Line: 597

Stack Trace:


[SocketException (0x274d): No connection could be made because the target machine actively refused it 127.0.0.1:8983]
   System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +305
   System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +699

[WebException: Unable to connect to the remote server]
   System.Net.HttpWebRequest.GetResponse() +7769892
   SearchS.GetSeatchData(String qry) in c:\inetpub\wwwroot\constantbusiness.com\SearchS.aspx.cs:597
   SearchS.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\constantbusiness.com\SearchS.aspx.cs:127
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3048


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1