Complex data types in WCF?

后端 未结 14 1019
自闭症患者
自闭症患者 2020-12-12 19:48

I\'ve run into a problem trying to return an object that holds a collection of childobjects that again can hold a collection of grandchild objects. I get an error, \'connect

14条回答
  •  独厮守ぢ
    2020-12-12 20:32

    this is actually the same information as your first exception description. it would be interesing what the original cause for the socketexception was. it has to be some type of error in the service itself. can you locate where exactly whar exception happens?

    i had similar errors when trying to return normal IEnumerables that were overwritten (they were marked as virtual) by NHibernate, and substitued with GenericPersistentBag, which is not serializable. have you marked your IEnumerable datamembers as virtual due to nhibernate or something similar? this could explain your error.

    btw. wcf exceptions are often quite meaningless (which can be very frustrating when tracking down a bug ;)

提交回复
热议问题