This can come from a number of potential errors with XAML. The first thing I now check, is to see if I am attempting to add multiple FrameworkElements with the same x:Name. For me, I was dynamically adding usercontrols to a canvas, but I made the mistake of giving the root element of the usercontrol an x:Name.
Other cases where I created this error: