DataContractSerializerMessageContractImporter Error: Type 'Newtonsoft.Json.Linq.JToken' is a recursive collection data contract which is not supported

Last Reply 6 months ago By Mudassar

Posted 6 months ago

When I bulid my project this following error is occur:

Reference.svcmap: Failed to generate code for the service reference 'ApolloProductDetail'.  Cannot import wsdl:portType  Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter  Error: Type 'Newtonsoft.Json.Linq.JToken' is a recursive collection data contract which is not supported. Consider modifying the definition of collection 'Newtonsoft.Json.Linq.JToken' to remove references to itself.

 

I have also try with to uncheck "Reuse types in referenced assemblies". still i have not solved isuues.

 

Please help me.it is urgent so please give reply immediately.

 

 

You are viewing reply posted by: Mudassar 6 months ago.
Posted 6 months ago

Refer

https://ikriv.com/blog/?p=2103