locked
Filter Control Clause on Filter Control for Lightswitch 2012 RRS feed

  • Question

  • Hi,

    In debug when saving a filter clause using the Filter Control LS throws the following error. Can someone help please.

    The data contract type 'FilterControl.Clause' cannot be serialized because the member '_clauseType' is not public. Making the member public will fix this error. Alternatively, you can make it internal, and use the InternalsVisibleToAttribute attribute on your assembly in order to enable serialization of internal members - see documentation for more details. Be aware that doing so has certain security implications.

    Note: the Filter conditions do save when saving them.

    Thanks

    John

    Wednesday, April 30, 2014 9:14 PM

Answers

  • The data contract type 'FilterControl.Clause' cannot be serialized because the member '_clauseType' is not public. Making the member public will fix this error. Alternatively, you can make it internal, and use the InternalsVisibleToAttribute attribute on your assembly in order to enable serialization of internal members - see documentation for more details. Be aware that doing so has certain security implications.

    I search relevant information about this error message above, similar issue was discussed before, please take a look at the discussion below, and check whether it can give some hints to troubleshoot.

    Reference: the data contract type .............

    If you have any concern, please let me know.

    hope it helps.

    Regards


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Angie Xu Friday, May 9, 2014 1:21 AM
    Wednesday, May 7, 2014 9:30 AM