Troubleshooting "Precondition failed" error message

If, after attempting to run an SDK example, you encounter the following error message, you need to install a separate component.

Error window: list_apps.vshost.exe - Precondition failed.

To run the examples, you'll need to install the code contracts binary rewriter. Follow the instructions contained in the error message: Exit Visual Studio and install CCRewrite from Then, rebuild the solution and run the example again.