I obtained this error when i tested my WCF Service.
Security settings for this service require Windows Authentication but it is not enabled for the IIS application that hosts this service.
Solution
IIS->select virtual directory with services -> Properties -> Directory Security tab-> Edit… -> Check Integrated windows authentication. Uncheck Anonymous access.
Then open command line and execute iisreset
