All version from 5.0+ fo-dicom and fo-dicom.json generates error serialization: Self referencing loop detected for property 'Tag' with type 'Dicom.DicomTag'. Path '[0].Tag.DictionaryEntry'. · fo-dicom fo-dicom · Discussion #1816 · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All version from 5.0+ fo-dicom and fo-dicom.json generates error serialization: Self referencing loop detected for property 'Tag' with type 'Dicom.DicomTag'. Path '[0].Tag.DictionaryEntry'.
#1816
Hello,
Im using fo-dicom, and fo-dicom.json in version 4.05 at hospital. Latelly I wanted to switch to new versions of fo-dicom, and after upgrading it to 5+ (no matter whitch wersion, the first 5 or the latest) I'm keep getting json serialization error:
"Newtonsoft.Json.JsonSerializationException: Self referencing loop detected for property 'Tag' with type 'Dicom.DicomTag'. Path '[0].Tag.DictionaryEntry'."
I use Newtonsoft.Json serialization with "JsonDicomConverter" to serialize "DicomDataset" (received from C-Find action, when asking for ModalityWorklistInformationModelFind). I usually store result of serialization in DataBase, to handle it later - when Im using this data to sign the surgery files uploaded to PACS server.
Please help - I tried to fix it alone, but with no acceptable results.
The code (it works with Fo-Dicom ver 4.05, but after migrating to 5+ it keeps throwing exceptions): var serializedDataset = JsonConvert.SerializeObject(dataSet, new JsonDicomConverter(true));
The full stack trace of the exception:
Newtonsoft.Json.JsonSerializationException: Self referencing loop detected for property 'Tag' with type 'Dicom.DicomTag'. Path '[0].Tag.DictionaryEntry'.
w Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CheckForCircularReference(JsonWriter writer, Object value, JsonProperty property, JsonContract contract, JsonContainerContract containerContract, JsonProperty containerProperty)
w Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CalculatePropertyValues(JsonWriter writer, Object value, JsonContainerContract contract, JsonProperty member, JsonProperty property, JsonContract& memberContract, Object& memberValue)
w Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
w Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)
w Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
w Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)
w Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
w Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)
w Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
w Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)
w Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)
w Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)
w Newtonsoft.Json.JsonConvert.SerializeObjectInternal(Object value, Type type, JsonSerializer jsonSerializer)
w Newtonsoft.Json.JsonConvert.SerializeObject(Object value, JsonConverter[] converters)
The DataSet contains default Tags, added to C-Find request when creating Worklist querry.
I already tried to create my own C-Find request, with less Tags, but the exception always occour, even I would keep only base Tags like Patient Name, Accession Nummber etc.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Im using fo-dicom, and fo-dicom.json in version 4.05 at hospital. Latelly I wanted to switch to new versions of fo-dicom, and after upgrading it to 5+ (no matter whitch wersion, the first 5 or the latest) I'm keep getting json serialization error:
I use Newtonsoft.Json serialization with "JsonDicomConverter" to serialize "DicomDataset" (received from C-Find action, when asking for ModalityWorklistInformationModelFind). I usually store result of serialization in DataBase, to handle it later - when Im using this data to sign the surgery files uploaded to PACS server.
Please help - I tried to fix it alone, but with no acceptable results.
The code (it works with Fo-Dicom ver 4.05, but after migrating to 5+ it keeps throwing exceptions):
var serializedDataset = JsonConvert.SerializeObject(dataSet, new JsonDicomConverter(true));
The full stack trace of the exception:
The DataSet contains default Tags, added to C-Find request when creating Worklist querry.
I already tried to create my own C-Find request, with less Tags, but the exception always occour, even I would keep only base Tags like Patient Name, Accession Nummber etc.
Pleas 8000 e help
Beta Was this translation helpful? Give feedback.
All reactions