Patch for Store apps referencing C++ extensions

Thursday, February 27, 2014

A patch for XAML Spy is now available addressing an issue that may occur in Windows Store apps when referencing one or more C++ extensions.

Issue

When using XAML Spy on a Windows Store 8.0 or 8.1 app, the XAML Spy property grid may display the following error: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B).

The error is caused by XAML Spy incorrectly trying to load an unmanaged library for reflection purposes.

Resolution

Follow these steps to resolve the issue

  • Download the patch
  • Unzip and extract the contents to [XamlSpyInstallDir]\Libraries\WinRT. You’ll need to overwrite the existing assemblies. The default XAML Spy install folder is C:\Program Files\First Floor Software\XAML Spy, or C:\Program Files (x86)\First Floor Software\XAML Spy for x64 systems.

The fix will be included in the upcoming XAML Spy update.