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

  • Question

  • 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 63:         //stream closed here
    Line 64: 
    Line 65:         resp = ((HttpWebResponse)request1.GetResponse()).GetResponseStream();
    Line 66:         //here get response from web service
    Line 67:         StreamReader rdr = new StreamReader(resp);

    Source File: d:\Ninad3\Learning_WCF\Learning_WCF\WebCalculator_App\Main.aspx.cs    Line: 65 

    Stack Trace: 

    [WebException: The remote server returned an error: (400) Bad Request.] System.Net.HttpWebRequest.GetResponse() +5373789 _Default.btnAdd_Click(Object sender, EventArgs e) in d:\Ninad3\Learning_WCF\Learning_WCF\WebCalculator_App\Main.aspx.cs:65 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

    I m not getting how to resolve this error .

    plz help

    Wednesday, December 25, 2013 6:59 AM

All replies

  • Hi Ninadsamel,

    I think the query was posted in the wrong forum.

    Is this issue related to Azure BizTalk Services? If not, can you post this in the right forum?

    Regards,

    Sujay

    Thursday, December 26, 2013 11:35 AM
  • Ninadsamel, you should seek help in the MSDN WCF Forum there:

    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wcf

    People will likely need more context to help you. If you are using an existing sample or tutorial, please indicate which one you are using. If this is your own code, you need to indicate what web request you were making.


    Senior Soft. Dev. Eng. | Microsoft IT | Microsoft Corporation

    Thursday, December 26, 2013 6:24 PM