changing serialization to usr JavaScriptSerializer instead of DataContractJsonSerializer. The IList<Endpoint> class was causing unknown types exceptions