Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


HTTPStageProcessing Exception in WCF REST service

Posted on 2011-10-17
Medium Priority
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
  • 2

Accepted Solution

dineshwins earned 0 total points
ID: 36979413
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

ID: 36979417
this works like a charm

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
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…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
Suggested Courses

580 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