0xC0020001: The string binding is invalid. - Only occurring in WPF 0xC0020001: The string binding is invalid. - Only occurring in WPF wpf wpf

0xC0020001: The string binding is invalid. - Only occurring in WPF


This occurs with certain DLLs that don't link with native libraries and thus their DllMain does not initialize some needed native subsystem (like CRT or ATL). Sounds like you have a mixed-mode DLL of some sort. One recommended solution is to remove the entry point from the managed DLL:Remove the Entry Point of the Managed DLL

  1. Link with /NOENTRY. In Solution Explorer, right-click the projectnode, click Properties. In the Property Pages dialog box, clickLinker, click Command Line, and then add this switch to theAdditional Options field.
  2. Link msvcrt.lib. In the Property Pages dialog box, click Linker,click Input., and then add msvcrt.lib to the Additional Dependenciesproperty.
  3. Remove nochkclr.obj. On the Input page (same page as in the previous step), remove nochkclr.obj from the Additional Dependencies property.
  4. Link in the CRT. On the Input page (same page as in the previous step), add __DllMainCRTStartup@12 to the Force Symbol References property.

More detail can be found here: https://support.microsoft.com/en-us/kb/814472