There can be numerous reasons for this but I will try to tell some

1. You don't have the class
2. You have the class but its not imported correctly.
3. You have missed the reference.
4. You have the using statement not correctly written.