foreach statement cannot operate on variables of type '%1!ls!' because '%2!ls!' does not contain a public definition for ...