Client side calls working; server class failing