An expression was passed that is not valid. The OfType method does not contain resource set or resource type information. ...