WCF ignore data contract not working
I have a WCF Service hosted on IIS. Here is my Interface:

    [ServiceContract]
    [SilverlightFaultBehavior]
    public interface IETC
    {
       [OperationContract]
       [PrincipalPermission(SecurityAction.Demand, Role = "XYZ")]
       string GetStampXML();

       [OperationContract]
       [PrincipalPermission(SecurityAction.Demand, Role = "XYZ")]
       List<Stamp> GetStamps();
    }

I am getting an error when I go to my WCF service through the web browser. The error is as follows:

    Type 'System.Windows.Media.ImageSource' cannot be serialized. Consider marking it with the DataContractAttribute attribute.....

My stamps Class is:

    [DataContract]
    public class Stamp
    {
        private string _Name;
        private string _SmallIcon = "";
        private string _MediumIcon = "";
        private string _LargeIcon = "";

        private BitmapImage _SmallImage;
        private BitmapImage _MediumImage;
        private BitmapImage _LargeImage;

        [DataMember]
        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }

        [DataMember]
        public string SmallIcon
        {
            get { return _SmallIcon; }
            set { _SmallIcon = value; }
        }

        [DataMember]
        public string MediumIcon
        {
            get { return _MediumIcon; }
            set { _MediumIcon = value; }
        }

        [DataMember]
        public string LargeIcon
        {
            get { return _LargeIcon; }
            set { _LargeIcon = value; }
        }

        [IgnoreDataMember]
        public BitmapImage SmallImage
        {
            get { return _SmallImage; }
            set { _SmallImage = value; }
        }

        [IgnoreDataMember]
        public BitmapImage MediumImage
        {
            get { return _MediumImage; }
            set { _MediumImage = value; }
        }

        [IgnoreDataMember]
        public BitmapImage LargeImage
        {
            get { return _LargeImage; }
            set { _LargeImage = value; }
        }
    }

It is like the IgnoreDataMember is not being recognized. I tried it without the IgnoreDataMember figure it was going to only serialize the DataMembers, and that didn't work either. Any ideas why it seems to trying to serialize the BitmapImage?

WCF ignore data contract not working
===

I have a WCF Service hosted on IIS. Here is my Interface:

    [ServiceContract]
    [SilverlightFaultBehavior]
    public interface IETC
    {
       [OperationContract]
       [PrincipalPermission(SecurityAction.Demand, Role = "XYZ")]
       string GetStampXML();

       [OperationContract]
       [PrincipalPermission(SecurityAction.Demand, Role = "XYZ")]
       List<Stamp> GetStamps();
    }

I am getting an error when I go to my WCF service through the web browser. The error is as follows:

    Type 'System.Windows.Media.ImageSource' cannot be serialized. Consider marking it with the DataContractAttribute attribute.....

My stamps Class is:

    [DataContract]
    public class Stamp
    {
        private string _Name;
        private string _SmallIcon = "";
        private string _MediumIcon = "";
        private string _LargeIcon = "";

        private BitmapImage _SmallImage;
        private BitmapImage _MediumImage;
        private BitmapImage _LargeImage;

        [DataMember]
        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }

        [DataMember]
        public string SmallIcon
        {
            get { return _SmallIcon; }
            set { _SmallIcon = value; }
        }

        [DataMember]
        public string MediumIcon
        {
            get { return _MediumIcon; }
            set { _MediumIcon = value; }
        }

        [DataMember]
        public string LargeIcon
        {
            get { return _LargeIcon; }
            set { _LargeIcon = value; }
        }

        [IgnoreDataMember]
        public BitmapImage SmallImage
        {
            get { return _SmallImage; }
            set { _SmallImage = value; }
        }

        [IgnoreDataMember]
        public BitmapImage MediumImage
        {
            get { return _MediumImage; }
            set { _MediumImage = value; }
        }

        [IgnoreDataMember]
        public BitmapImage LargeImage
        {
            get { return _LargeImage; }
            set { _LargeImage = value; }
        }
    }

It is like the IgnoreDataMember is not being recognized. I tried it without the IgnoreDataMember figure it was going to only serialize the DataMembers, and that didn't work either. Any ideas why it seems to trying to serialize the BitmapImage?
