Unanswered WCF

  • Tuesday, June 19, 2012 10:11 AM
     
      Has Code

    Hi,

    I am receiving the following error when I pass list data to the WCF service. When  data is small it works , but when data is large it does not work.

    Below is the exceptions.

    [WebException: The remote server returned an error: (400) Bad Request.]
       System.Net.HttpWebRequest.GetResponse() +6115603
       System.ServiceModel.Channels.HttpChannelRequest.WaitForReply(TimeSpan timeout) +48
    
    [ProtocolException: The remote server returned an unexpected response: (400) Bad Request.]
       System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +9439503
       System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +345
       BusinessFacade.SparkService.IService1.insertUpdatePatientResultEntry(PatientLabResultEntry objPatientLabResultEntry) +0
       BusinessFacade.LIS.Master.PatientLabResultEntryBAL.insertUpdatePatientResultEntry(PatientLabResultEntry objPatientLabResultEntry) in D:\Projects Development\Spark\Hospice\Phase-IILIS\Phase-II\02-SourceCode\Spark\BusinessFacade\LIS\Master\PatientLabResultEntryBAL.cs:40
       Pages_LIS_SearchPatientsForLabResultEntry.insertUpdatePatientResultEntryDetails() in d:\Projects Development\Spark\Hospice\Phase-IILIS\Phase-II\02-SourceCode\Spark\WebSite\Pages\LIS\SearchPatientsForLabResultEntry.aspx.cs:1006
       Pages_LIS_SearchPatientsForLabResultEntry.btnSave_Click(Object sender, EventArgs e) in d:\Projects Development\Spark\Hospice\Phase-IILIS\Phase-II\02-SourceCode\Spark\WebSite\Pages\LIS\SearchPatientsForLabResultEntry.aspx.cs:475
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
       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) +5563

    Regards

    Irfan


    Irfan

    • Moved by Ben Cline1MVP Monday, July 02, 2012 3:56 PM related to WCF (From:AppFabric Service and Workflow Management)
    •  

All Replies

  • Thursday, June 28, 2012 5:02 PM
     
     

    Maybe try increasing the timeouts on the binding configuration properties? This sounds like a standard WCF issue.

    Thanks,


    If this answers your question, please use the "Answer" button to say so | Ben Cline

  • Monday, July 02, 2012 7:25 AM
     
     

    Hi Ben, 

    Can u elaborate where we need to make the above changes?

    We are using WCF as a layer between our logic access layer and data access layer.

    Regards,

    -Irfan


    Irfan

  • Monday, July 02, 2012 3:55 PM
     
     

    I would just look in the config file for the service and edit some of the timeout values like the OpenTimeout or SendTimeout. If you open the config in the service configuration tool this shows you the different possible options on the binding.

    Thanks,


    If this answers your question, please use the "Answer" button to say so | Ben Cline

  • Monday, July 02, 2012 11:13 PM
     
     

    Could you enable tracing in your WCF service? it will help you to find out exactly what is going wrong.

    Also have a look at this post that i have written on my blog handling large data in wcf service.


    Tanvir Huda Application Architect/Consultant http://thetechnocrate.wordpress.com/