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 924:        WebRequest request = WebRequest.Create(HttpUtility.UrlDecode(url));
Line 925:        request.ContentType = "application/json";
Line 926:        HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Line 927:
Line 928:        Stream receiveStream = response.GetResponseStream();

Source File: c:\inetpub\wwwroot\constantbusiness.com\Chart.aspx.cs    Line: 926

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
   company_Chart.GetSeatchData(String qry) in c:\inetpub\wwwroot\constantbusiness.com\Chart.aspx.cs:926
   company_Chart.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\constantbusiness.com\Chart.aspx.cs:133
   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