I'm not sure I can explain the problem or error, but here is what I had to do to get rid of the error:
I have two resx files one for the default language english and one for danish. I had to manually edit the resx file that hold the danish language from:
The danish resx file when the error message is still there
to: