[bug] wcf hangs indefinitely on complex type when returning (worked on feb ctp)

In the may beta 2 release, I can no longer return some of my domain types. Something I could do perfectly with the feb. ctp.

My domain model is decorated with the correct datacontract and datamember attributes. In it I have a 'Person' which inherits from a base class. In that baseclass I have a private bool.
This class serializes and deserializes great. However, when I use some other domain object, which has a property of type 'Person', the server never returns to the client. Commenting out the private boolean [Datamember] attribute, does let it return. (obviously, this is not a workaround I can consider).

I have created a test where I just use the datacontractserializer to serialize to a memory stream and deserialize it, and that works great. The problem only occurs when I use wcf to do the communication. I'm using wsDualHttpBinding.

This is a showstopper for our proof-of-concept usecase. Any help is much appreciated.




Answer this question

[bug] wcf hangs indefinitely on complex type when returning (worked on feb ctp)

  • Tim Droz

    If you have repro for this problem,can you please send it to me,my email id is madhup@microsoft.com

    -Thank you

    Madhu



  • Andrew Mayorov

    //we solved this problem offline,I am sharing solution for this problem

    main exception is related to System.ServiceModel.Security.MessageSecurityException'

    After increasing the reader quota, we are able to run this sample

    <readerQuotas maxDepth="90000" maxStringContentLength="90000"

    maxArrayLength="90000" maxBytesPerRead="90000"

    maxNameTableCharCount="90000" />

    -Thank you

    Madhu



  • San71

    shouldn't be too hard, i'll try to do it tomorrow

  • MaurizioG

    yep, sorry, forgot to post here about it..

    many thnx!



  • Wouter_N

    mail sent



  • [bug] wcf hangs indefinitely on complex type when returning (worked on feb ctp)