This error seems to be posted all over the place but each one seems to have its own solution, none of which solved my problem.
I am getting an error for a Resource D
This may not be the solution for your problem, but I see the error you are asking about quite often, and the issue is generally caused by a problem loading the assembly.
If you check your assemble, and it has a yellow triangle attached to it, then it is likely not compatible with your current project setup, due do different versions of .NET, or something of the sort.
This will usually fail silently, or only cause a warning; when you try to reference the assemble in your XAML you will get an error like you described.