web services - c# System.InvalidOperationException: The type foo was not expected -
This question is related to the other that I have said that there is a website that returns a class whose There is a list of the self within the classes. The following exception is being thrown when I try to call the method:
System. Translation Operation exception: Type YambushiDataClass.SCharacterProjectile was not expected.
This is the category that he has said that is not required :
is using the system; Using System.Collections.Generic; Using System.Linq; Using System.Text; Using System.Xml.Serialization; Namespace YambushiDataClass {public class SCharacterProjectile: SProjectile {public int? CharacterProjectileId {Receive; Set; } Public string projectime {get; Set; } Public int? CharacterId {get; Set; }}}}"post-text" itemprop = "text">After 2 days of pressing my brain in an attempt to solve this problem, apparently I Tried to make the list public
list & lt; Sprojectile & gt; Projectile list = new list & lieutenant; SpogJeclexy & gt; ();The Type Sparker project that has been inherited from Sprojecclier can not be serialized
Comments
Post a Comment