This is a typical problem of WPF/Silverlight. Nobody can give you a complete ready-to-use solution of this problem, simply because you did not provide any code sample.
However, the idea of solution is pretty simple: you should understand how it works and realize that
this is a feature, not a problem. You don't want to "get rid of this error", you want to prevent it. Really, this is a really good feature designed to help developers avoiding doing some stupid things. Any UI element should be added only to one parent. You need to find where you try to add the same reference as a child of some node.
You need to understand child-parent relationships in WPF/Silverlight. For Silverlight, please read this:
http://msdn.microsoft.com/en-us/library/cc189034%28v=vs.95%29.aspx[
^].
—SA