Actually, this error seems to be a side effect.
It occured in one application which was converted from Website-type project to webapp type project. After initial importing files, there were about 2000 errors (most caused by missing / wrong references or namespaces).
I ignored that error and fixed other, and the suddenly the error dissapeared.