If you are using automatic properties to define your data objects and you are trying to serialize these objects to a JSON string using DataContractSerializer (WCF/3.5), make sure you mark your data classes with [DataContract] and [DataMember] attributes (even if you are not really using WCF), a simple [Serializable] attribute will not do. If you just use [Serializable], the emitted JSON string will have a prefix tag “k_backingField” and the string is all mumbo-jumbo! So …
4 articles Tag WCF
9 good WCF Links
Fundementals of WCF Security – Explains WCF Security, deployment scenarios etc. by Michele Leroux Bustamante. Also if you want to learn WCF in depth, Michele’s WCF book is an invaluable resource. Section of MSDN that outlines WCF technology Some basic WCF design patterns from Rob Daigneau How to consume a WCF service – a primer ASP.Net Ajax and WCF – link . Also see my earlier post here. From .Net Remoting to WCF – A good …
“Could not establish trust relationship for the SSL/TLS secure channel with authority…”
If you are getting this error while consuming your WCF service, read this older post first. The other day I was connecting to one of our WCF services, and I got this infamous error. For few hours this challenged me, because it was working on dev server and I got this message when I moved this new client application to QA. It turned out to be a SSL Cert related issue, SSL Cert on that …
Using JSON – Some observations
When using JSON with Web Services (classic web service or WCF service), you might get an error “JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.” when your json string is too big. If you are using JavaScriptSerializer class to serilaize your object, then there is a property ser.MaxJsonLength that you can set to allow for more size. But somehow, I still got the error, and I had to …

Recent Comments