I resolve this error by following steps:
1> Right click on the project and select property option.
2> Go to the Web tag and you have to set the Use Visual Studio Development server instead of User IIS Web Server.
I have resolved this problem just by following above steps. I think it will help you to resolve your problem too.