Could not find type '<type name>'

Complete error message: Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built.

This error occurred because a reference was not found.

Make sure the type indicated in the error message is referenced, and that any assemblies that the type requires are also referenced.

To correct this error

  • Commonly, the problem is that a control in the solution has not been built. To build, select Build Solution from the Build menu.

    Otherwise, if the control has already been built, add a reference manually by right-clicking the References folder in Solution Explorer and choosing Add Reference.

See Also

Tasks

How to: Prepare and Manage Builds