WPFでResourceDictionaryが検索できませんとエラーが出た場合の対処方法

ResourceDictionaryにStyleを定義し、以下のように宣言をします。 <ResourceDictionary> </resourcedictionary>