The service "ServiceName"could not be generated.\an Error: Class (ID='1027650') is not a valid parameter or return value.

Check the class attributes. Check whether the contract class have [DataContractAttribute] attribute if not write there and compile and cil your objects.

The above error comes due to missing class attributes.

Related
Recommended