SerializationException Field not found

I have a class “PlayerData” that includes a few variables, all public, that is marked Serializable. However, upon deserialization of a List, Unity is throwing the error “SerializationException: Field “ip” not found in class PlayerData.” I’m not certain what is causing this, but I will mention that the serialized state is created by a Windows Forms app (it’s compiled in Unity .Net 3.5) and the deserialization is being done in a Unity script. Any solutions for this?

[Serializable()]
public class PlayerData
{
public string Identity = “”;
public bool InGame = false;
public string ip;
public int port;
}

Not sure this is applicable on your class but I had a similar problem and solved it by removing the auto implement get and set for my variables!