Recibo el siguiente error cuando llamo a mi servicio WCF. ¿Que me estoy perdiendo aqui?¿Por qué recibo este mensaje de error de WCF?
'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."}
¿Puedes publicar el código en tu servicio y/o cliente? –
soy nuevo en WCF ... myEntity es un proyecto de negocio de C# ... ¿pueden decirme cómo y dónde puedo suministrar este tipo a DataContractSerializer? –