I had this error again and none of the above worked for me. I had to remove the following node in .csproj file: ..... Reloaded VS and it worked.
FYI, VS was able to recreate the node and then I recreated the website in IIS (through VS) and it worked perfectly.
Hopefully this will help someone.