Server Error in '/' Application.

The remote server returned an error: (400) Bad Request.

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.WebException: The remote server returned an error: (400) Bad Request.

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:


[WebException: The remote server returned an error: (400) Bad Request.]
   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