The type or namespace name 'XXX' could not be found...
Always bear in mind, if you get this error there are three possibilities.
- You missed the using directive.
- You missed the Assembly reference
- You have "using directive" as well as "Assembly reference" in place but the current project's target framework version is lower than the referenced assembly target framework version.
Almost all the cases above three steps should solve the problem.
Hope this helps.