Questions tagged [datacontractsurrogate]

7 questions
2
votes
1 answer

Error on serialization due to circular dependency

I have a custom base class Entity decorated with [DataContract(IsReference = true)] and deriving from UndoableBase of CSLA.net. Keeping IsReference is important to preserve object reference data. [Serializable] [DataContract(IsReference =…
1
vote
1 answer

Silverlight Entity Framework DataContractSurrogate Error

I'm receiving a database connection timeout error when my Domain Service is called to return an Entity Framework object. I'm using Silverlight 4 with Visual Studio 2010. The initial error is trapped on the Silverlight client side after the…
1
vote
0 answers

What is the difference between DataContractResolver and DataContractSurrogate?

What is the difference between DataContractResolver and DataContractSurrogate? These both are used to change the type of the object while serialization or deserialization what is the difference between these two? Which is better in case of…
Sandip D
  • 103
  • 1
  • 14
1
vote
1 answer

protobuf-net -- DataContractSurrogates?

Right now, I'm using DataContractSerializer along with DataContractSurrogate to provide serialization descriptions for NHibernate proxy classes (as described in http://timvasil.com/blog14/post/2008/02/WCF-serialization-with-NHibernate.aspx). I'm…
David Pfeffer
  • 38,869
  • 30
  • 127
  • 202
0
votes
0 answers

Julia Surface plotting

I was trying to make surface plot using Julia. But i am getting error while running the program find the attached error using LinearAlgebra, SparseArrays, Plots, DifferentialEquations using Surrogates using Plots gr() L=20 N=100 k=50 x=range(0,…
0
votes
1 answer

WCF DataContractSurrogate with different non inherited types

Aim To dynamically expose an RSS/Atom endpoint for a service that has an unknown enumerable type. The type will be found via reflection to build the syndication endpoint(s). Approach I am using .net 4.0 I am reflecting over a dll to expose…
0
votes
1 answer

WCF Cannot deserialize when using IDataContractSurrogate

I'm using WCF service with WebHttpBinding. I have written custom IDataContractSurrogate implementation to serialize enum as strings. Enums are serialization WORKS, but deserialization fails. when request contains enum, then I get: The remote…
Liero
  • 25,216
  • 29
  • 151
  • 297