Ich erhalte den Fehler unten, wenn ich meinen WCF-Dienst anrufe. Was fehlt mir hier?Warum erhalte ich diese WCF-Fehlermeldung?
'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."}
können Sie den Code an Ihren Service und/oder Client senden? –
bin neu bei WCF ... myEntity ist ein C# -Geschäftsobjekt ... kannst du mir bitte mitteilen, wie und wo ich diesen Typ an DataContractSerializer liefere? –