|
|
submitted by
hockman
2 months, 3 days ago
hockblogs.net — On a .NET 2.0 project I’m currently working on, where I’m getting my data from a webservice, I was getting the following error:
System.InvalidOperationException: Er is een fout opgetreden bij het genereren van het XML-document. ---> System.InvalidOperationException: Er is een kringverwijzing aangetroffen tijdens het toepassen van serialisatie op een object van het type BusinessObjects.Domein.
In English the error was:
System.InvalidOperationException: A circular reference was detected while serializing an object of type BusinessObjects.Domein.
I’ve found out that one of my objects must hold onto another object that is higher up in the chain which resulted into a circular reference. Yes indeed, this is true, but now it seems that xml serialization can’t handle it. My business object has a logical parent-child tree structure and that’s exactly how I want to have my business objects.
|
|
tags:
WebServices | tag it
Everyones tags: | Your tags: | |
|
|
|
Add a live kick counter to your blog >>
You can even customize the image by choosing your own colors, and then clicking
the button below to update the preview and the html code:
Simply copy and paste this HTML into your blog post.
Users who kicked this story:
No comments so far
|