जब मैं अपनी डब्ल्यूसीएफ सेवा को कॉल करता हूं तो मुझे नीचे त्रुटि मिल रही है। मुझे यहां क्या समझ नहीं आ रहा है?मुझे यह डब्ल्यूसीएफ त्रुटि संदेश क्यों मिल रहा है?
'System.String[]' with data contract name
'ArrayOfstring:http://schemas.microsoft.com/2003/10/Serialization/Arrays'
is not expected. Add any types not known statically to the list of known
types - for example, by using the KnownTypeAttribute attribute or by adding
them to the list of known types passed to DataContractSerializer.'. Please
see InnerException for more details.
{"There was an error while trying to serialize parameter
http://tempuri.org/:myEntity. The InnerException message was
'Type 'System.String[]' with data contract name
'ArrayOfstring:http://schemas.microsoft.com/2003/10/Serialization/Arrays'
is not expected. Add any types not known statically to the list of known
types - for example, by using the KnownTypeAttribute attribute or by adding
them to the list of known types passed to DataContractSerializer.'.
Please see InnerException for more details."}
क्या आप अपनी सेवा और/या ग्राहक को कोड पोस्ट कर सकते हैं? –
डब्ल्यूसीएफ के लिए नया हूँ ... myEntity एक सी # businessobject है ... क्या आप कृपया मुझे बता सकते हैं कि मैं इस प्रकार को कैसे और कहां DataContractSerializer को आपूर्ति करूं? –