403.1 error while hosting WCF service using IIS

If you are getting 403.1 error while hosting WCF using IIS, then you might be using the wrong directory name.

Let us say you want to host your service at

https://localhost/A/service.svc

 And the physical location of the service.svc file must be under the directory A.

 {any local directory on your computer}/A/service.svc

Hope this helps!