If your web site( hosted in IIS) contains multiple web.config files(one at application level and other at directory level, and one below that one in heirarchy), then other than application level web.config file,other web.config files having authentication authorization,membership,roles tags leads to this problem.
these have to be placed at application level web.config files.
For more information,visit
IIS WebHosting