I define my settings and styles in a ResourceDictionary:
Just posting another potential solution, because i just recently stumbled over this exception.
It could be that your referenced class-cefinition (in your case "Kavand.UI.Properties.Settings") does not use "public"-access-modifier.
So in my case i could solve this problem by writing public before the class definition.