I am making reference to a service that exposes an Enum type in the service namespace. When the proxy is generated the Enum type is not present. What causes this to occur and how do I resolve?
Note: adding this as a web reference generates the type, as a service reference it does not.
If you are not using the
Enuminside yourServiceContract– it may not be known. You could try usingKnownTypeand marking theEnumaspublicwithDataContractand eachEnummember asEnumMember.You should also try explicitly assigning values to the
Enumtypes like this:instead of…