I've been fighting with this error for a few days now after many searches, trials, uninstalls and re-installs the issue is fixed.

Ready for it....

 Use the machine name instead of localhost when you open the site.

That worked for me...I hope it works for you.