In this article, I’m gonna to fix the below SharePoint Event log issue
WebHost failed to process a request Exception: System.ServiceModel.ServiceActivationException: The service ‘/_vti_bin/sts/spsecuritytokenservice.svc’ cannot be activated due to an exception during compilation. The exception message is: This collection already contains an address with scheme http.
There are multiple site bindings in this collection and the “multipleSiteBindingsEnabled” is not set to true in the web config file of the web service.
To overcome “The exception message is: This collection already contains an address with scheme HTTP” error, try to do the following:
- In the SharePoint WFE Server that raises this error log,
- Open IIS > Sites > SharePoint Web Services > Explore Security Token Service Application.
- Take a copy from the web.config file to allow the rollback.
- Edit the web.config file with an appropriate editor.
- Below <system.serviceModel>, add the below tag
<serviceHostingEnvironment multipleSiteBindingsEnabled=”true” />
- Save, and close.
- Try to browse the “servicetoken.svc” to make sure that the service is working properly.
- SharePoint 2016.
- SharePoint 2013.