I am trying to use the following class in a DataContract:
public class IDParams : Collection
{
}
Do I have to mark it in any way?
Following is the DataContract I used:
[DataContract]
public class Test
{
[DataMember]
public IDParams Item{ get; set; }
}
It raises a CommunicationException (Not found) :(
Any ideas how I can solve this?
Best regards,
Matthias

Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Jul 21, 2011, 4:06 AM EDT
Can you post the exact error message.?
Priya LingeRank #785 · 2.9K reputationPosted Jul 21, 2011, 4:25 AM EDT
Try this,
[DataContract(IsReference=true)]
Public Class Test
{
[DataMember]
Public IDParams Item{get; set;}
}
Please see the below link.
http://johnleitch.blogspot.com/2010/03/remote-server-returned-error-notfound.html
Hope this will help you.
Thanks.