I am getting strange error when i run Service.svc file :
I have used one class ( from another Webservice ) as a parameter to the function.
If i comment that function in Interface , its working fine.
Type cannot inherit from a type that is not marked with DataContractAttribute or SerializableAttribute. Consider marking the base type with DataContractAttribute or SerializableAttribute, or removing them from the derived type.
Could somebody help me regarding this.
thans in advance and
Sorry for my bad english.
I think Marc is correct and perhaps there is a miscommunication. He/I think that you are consuming a webservice and reusing a class from that same web service (which you likely generated code for) as a parameter in a different wcf web service which you are writing.
Essentially, the type which is generating the error likely does not have the DataContractAttribute which it requires.