Troubleshoot the Clock Application (Compact 2013)
3/26/2014
This topic provides solutions to common problems that you may experience while importing an Expression Blend project into a Platform Builder subproject, creating event handlers, or merging changes from the Expression Blend project.
Import Issues
The Validation Report displays one or more validation errors
If the Subproject Application Wizard is unable to import your Expression Blend project, it produces a "Validation Report" that details any errors that it finds during the import process. Typically, validation errors are caused by the presence of controls and other elements in the Expression Blend project that XAML for Windows Embedded does not support. For more information, see Differences Between Microsoft Silverlight 3 and XAML for Windows Embedded.
The Subproject Application Wizard displays a "file not found" error message
Windows Embedded XAML Tools does not support image files or XAML files with special characters in their names. For example, a XAML file name that contains an ampersand (&) will cause the import of the Expression Blend project to stop and an error message to be displayed. For best results, name your image files and XAML files using only letters, numerals, and underscores (_).
The Subproject Application Wizard appears to be frozen
Windows Embedded XAML Tools supports only one running instance of Visual Studio at a time. If you have multiple instances of Visual Studio running Windows Embedded XAML Tools at the same time, one of these instances can freeze while it waits for input from the other instance. To avoid this situation, use only one Visual Studio instance while running Windows Embedded XAML Tools.
Windows Embedded XAML Tools displays an error message about an invalid template file
If your Expression Blend project has one or more linked XAML files, Windows Embedded XAML Tools cannot import these files into your subproject. To remedy this problem, add XAML files directly to your Expression Blend project rather than creating links to them.
Adding the subproject results in an "illegal characters in path" error
If your Expression Blend project has one or more file names that contain double-byte characters, Windows Embedded XAML Tools cannot use your project to create a valid Platform Builder subproject. To remedy this problem, convert these file names to Unicode format.
Windows Embedded XAML Tools displays an "Invalid File Name" error
If the directory path to the application project contains white spaces or other invalid characters, an "Invalid File Name" error message appears. To remedy this problem, remove white spaces or other invalid characters from the directory path to the application project.
Event Handler Issues
Newly created event handler code does not compile
When you specify a new event handler name, the name must be a valid C++ identifier or the event handler will not compile. The event handler name must begin with a letter or an underscore (_), followed by any number of letters, underscores, or numerals.
Update Issues
Update displays the message, "Please open a XAML for Windows Embedded project document."
Before you select the Update XAML for Windows Embedded Project menu item, you must first open a file in the Platform Builder subproject that you want to update (for example, MainPage.xaml). This selection ensures that the Windows Embedded XAML Tools update tool updates the appropriate subproject in your OS design.
See Also
Concepts
Getting Started with XAML for Windows Embedded
XAML Markup Reference for XRPack