question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

circular references are detected for types with custom serializer

See original GitHub issue

Given complex type containing circular reference and custom serializer for that type IExtendedXmlCustomSerializer<MyType>, you get an exception that circular references are detected.

I belive types with custom serializer implemented should not be checked for references.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
aspektxxxcommented, Jan 29, 2020

Okey @Mike-EEE, I got it working. Please look at it and tell me what you think 😃

https://github.com/ExtendedXmlSerializer/home/pull/363

0reactions
Mike-E-angelocommented, Jan 30, 2020

OK! I got this shipped out for you, @aspektxxx … thanks again for your patience and contributions here. They are very much appreciated in light of my limited time of late. Also, I got you in the release notes and CHANGELOG. 👍

3.1.1 can be found here: https://www.nuget.org/packages/ExtendedXmlSerializer/

<div>ExtendedXmlSerializer 3.1.1</div><div>An extensible Xml Serializer for .NET that builds on the functionality of the classic XmlSerializer with a powerful and robust extension model.</div>
Read more comments on GitHub >

github_iconTop Results From Across the Web

A circular reference was detected while serializing an ...
It seems that there are circular references in your object hierarchy which is not supported by the JSON serializer.
Read more >
Circular references in JSONSerializer and StackOverflow ...
We do have a TypeSerializer.HasCircularReferences(object) you can use to detect circular references as well as a ToSafeJson() which ...
Read more >
How to preserve references in System.Text.Json
This article shows how to preserve references and handle or ignore circular references while using System.Text.Json to serialize and ...
Read more >
JavaScriptSerializer: Circular Reference was Detected While ...
A circular reference was detected while serializing an object of type 'System.Data.Entity.DynamicProxies.OperationDefinition_12123132123....'.
Read more >
A circular reference was detected while serializing an ...
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found