Type 'System.Web.HttpInputStream' cannot be serialized
问题 I have been trying to design a WCF file upload service and am getting the following error in my web application: Type 'System.Web.HttpInputStream' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. See the Microsoft .NET Framework documentation for other supported types. Based on this error, I have tried re-marking my FileTransfer class with DataContractAttribute and