[ServiceContract(Namespace = "http://PJKSolutions.com/24/09/2014", Name = "IPJKSolutionsService")] [ServiceKnownType(typeof(ChargeType))] public interface IPJKSolutionsService { // Removed for brevity. } [DataContract] public enum ChargeType { [EnumMember] Daily = 1, [EnumMember] Hourly, [EnumMember] FixedFee }A problem occurs when I call a method in the service that involves the modified class ( i.e the one that I've added the enum property to ) I receive an error which is either
System.ServiceModel.CommunicationException was unhandled by user code HResult=-2146233087 Message=The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:09:59.9599977'. // Lots of stack trace and stuff removed by me.or a similar one about the server being in a Faulted state, I know it's the enum property thats causing this because I removed it and all is fine again. Any ideas ?