The end of the string was not found

The end of the string was not found. The string is terminated with a ({0}) character.

This error occurs when a string is not terminated correctly. The error message tells you what the expected terminating character is. This error is often followed by Expected '{0}' and Closing tag for element '<{0}>' was not found.

Error ID: XAML0101

To correct this error

  • Ensure that string declarations before the location of the XAML0101 error are terminated with either the double quotation (") or the single quotation (') character and that the terminating character matches the opening character.

Example

The following code example shows how to correctly terminate the 'OK' string in a button element.

<Button Content='OK' />

See Also

Concepts

XAML Errors and Help

Other Resources

XAML

Attributes [XML Standards]

Character and Entity References [XML Standards]