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
Priya LingePosted Jul 21, 2011, 8:25 AM
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.
Jaganathan BantheswaranPosted Jul 21, 2011, 8:06 AM
Can you post the exact error message.?