We are working on this project in a team and I just copied the line for using resources… I just forgot to copy the xmlns attribute as well. What I find strange is that the error isn’t really descriptive and doesn’t give any real hints as to what the problem is.
Moral of the story: if copying lines of code make sure that all references to namespaces are also copied.