The type '{0}' was not found

The type '{0}' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.

This error occurs when you declare a type that is not present in any namespace which is in scope, or when an assembly reference is missing.

This error is raised when the file is a valid XML document, but is not a well-formed XAML document.

Error ID: XAML0414

To correct this error

  • Ensure the type belongs to a mapped namespace which is in scope.

To correct this error

  • Ensure the assembly which contains the type is referenced and has been built.

To correct this error

  • Check the spelling of the type.

Example

The following code example shows two element declarations. The first element is in the default namespace, and its assembly is referenced by default. The second element is not defined. Uncomment the second element declaration to raise error XAML0414.

<Button Content='OK'/>

<!-- Uncomment the following line to raise error XAML0414. -->
<!-- <Undefined/> -->

See Also

Concepts

XAML Errors and Help

Other Resources

XAML