none
System.Net.WebException Message=The underlying connection was closed: The connection was closed unexpectedly.

    General discussion

  • Hi,

    I have a work flow developed in vs2010 WF4 exposed as service. I am consuming this service in a test web application, whenever service returns i get the following exception:

    System.Net.WebException       Message=The underlying connection was closed: The connection was closed unexpectedly.

    If i return a string it works fine, whenever i deserialize my result into an object and return that object i get the above mentioned error.

     

    Regards,

    Hassam

    • Moved by edhickeyOwner Thursday, October 07, 2010 2:37 PM (From:.NET 3.0/3.5 Windows Workflow Foundation)
    • Changed type Andrew_ZhuModerator Monday, October 18, 2010 2:35 AM no reply
    Thursday, October 07, 2010 8:42 AM

All replies

  • Hi, Hassam

    ->"I am consuming this service in a test web application"
    Have you tired testing the WF4 service in WCF Test Client?

    Regards
    This posting is provided "AS IS" with no warranties, and confers no rights. Microsoft Online Community Support. My Blog:http://xhinker.com "Microsoft Windows Workflow Foundation 4.0 Cookbook"
    Thursday, October 14, 2010 6:58 AM
    Moderator