# C# Nest Serialization of GeoShapeBase

**URL:** <https://discuss.elastic.co/t/c-nest-serialization-of-geoshapebase/70307>\
**Category:** Elasticsearch\
**Created:** [December 31, 2016, 2:00am UTC](https://discuss.elastic.co/t/c-nest-serialization-of-geoshapebase/70307 "2016-12-31T02:00:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MatthewHartz](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@MatthewHartz](https://discuss.elastic.co/u/MatthewHartz)\
**Post date:** [December 31, 2016, 2:00am UTC](https://discuss.elastic.co/t/c-nest-serialization-of-geoshapebase/70307/1 "2016-12-31T02:00:53Z")

</div>

Hi,

I'm trying to do a search and return the a object containing a geocircleshape across a service in Azure service fabric. I am receivine the error:

"Type 'Nest.GeoShapeBase' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types."

I've tried adding the DataMember attribute to my "List\<Nest.CircleGeoShape\>" and I still receive the same error. It seems to be an issue at the Nest level.

Any ideas?

Thanks!

---

<div class="post-metadata">

**Author:** ![MatthewHartz](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@MatthewHartz](https://discuss.elastic.co/u/MatthewHartz)\
**Post date:** [January 3, 2017, 6:11am UTC](https://discuss.elastic.co/t/c-nest-serialization-of-geoshapebase/70307/2 "2017-01-03T06:11:44Z")

</div>

bump 🙂

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [January 5, 2017, 9:51am UTC](https://discuss.elastic.co/t/c-nest-serialization-of-geoshapebase/70307/3 "2017-01-05T09:51:35Z")

</div>

Hi,

I'm closing this topic now as you've already created a [Github issue](https://github.com/elastic/elasticsearch-net/issues/2524) for that so let's keep the discussion there.

Daniel

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [January 5, 2017, 9:51am UTC](https://discuss.elastic.co/t/c-nest-serialization-of-geoshapebase/70307/4 "2017-01-05T09:51:42Z")

</div>


