HTTPStageProcessing Exception in WCF REST service

Posted on 2011-10-17
Last Modified: 2012-06-27
I am using REST WCF Service, the issue is i am getting HTTP Stage Processing Exception, when i go deep into inner exception level, it said "The underlying connection was closed: The connection was closed unexpectedly."
When i debug it to some deep level, i come to know that after serving my request, again the same request has been made, i don't know the reason. But the outsome is pretty obvious for the second request, the undelying connection was closed and hence i get the exception.
After lots of hooks and crooks i come to find that there are two properties(say a & b) of type int in the return type of the WCF method, that are responsible for recalling the service method, i comment them and now they are working fine, but this is not the solution.
Microsoft's error message does not help me as it is not explained in detail. So kindly guide me towards the reason, how could i resolve it and find it easily from now onwards.
Those two properties looks like this
         public EMP_STATUS EmployeeStatus { get; set; }
         public EMP_STATE EmployeeState { get; set; }
I am working with EF 4.1, if that helps you in anyways. Thanks
Question by:dineshwins

    Accepted Solution

    Actually what happened is, my linq query returns null for the enum values, this was the only reason. I change that and now its working fine

    Author Closing Comment

    this works like a charm

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now