I have a WCF service which exposes a method that returns an array of objects which contain an Image property (see code below). In the same solution, I have a class library project which has a service reference to my WCF project. In the class library, when I attempt to "Update Service Reference" my proxy class becomes unavailable. When I remove the "Graphic" property from my class, I have no difficulty updating the service reference in the class library and my code all compiles and runs fine. I put the "Graphic" property back in and the proxy class again becomes unavailble. And what is even stranger is that the only class exposed by the service reference is "Image".
What am I overlooking here?
[Serializable]
public class PhotoDTO
{
public Guid Id { get; set; }
public Image Graphic { get; set; }
}
[ServiceContract]
public interface IGeneralService
{
[OperationContract]
PhotoDTO[] GetPhotos(Guid subsectionId);
}