System.ServiceModel.ServiceActivationException: The service '/_vti_bin/client.svc' cannot be activated due to an exception during compilation.

Will 606 Reputation points
2020-07-18T19:14:42.367+00:00

Hi there,

there are two WFE in my SharePoint Farm, when I access my SharePoint one of WEFs through CSOM. It turns out (500) Internal Error. Meantime I found the following error in Windows Event Viewer. How should I solve it out.


WebHost failed to process a request.
Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/22643445
Exception: System.ServiceModel.ServiceActivationException: The service '/_vti_bin/client.svc' cannot be activated due to an exception during compilation. The exception message is: The Web application at http://win-cvr30lpg5md:8001/_vti_bin/client.svc/ProcessQuery could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.. ---> Microsoft.SharePoint.SPException: The Web application at http://win-cvr30lpg5md:8001/_vti_bin/client.svc/ProcessQuery could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.
at Microsoft.SharePoint.Utilities.SPUtility.ConfigServiceHostIfClaimsAuth(ServiceHost serviceHost)
at Microsoft.SharePoint.Client.SPClientServiceHost.OnServiceHostOpening(ServiceHost serviceHost)
at Microsoft.SharePoint.Client.Services.MultipleBaseAddressWebServiceHost.OnOpening()
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity)
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
--- End of inner exception stack trace ---
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath, EventTraceActivity eventTraceActivity)
Process Name: w3wp
Process ID: 2896

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
1,475 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Trevor Seward 11,501 Reputation points MVP
    2020-07-18T22:49:08.91+00:00

    Try running Install-SPApplicationContent on the impacted SharePoint server(s).

    No comments

  2. Will 606 Reputation points
    2020-07-19T13:57:38.273+00:00

    Hi Trevorseward,

    see you once again. I solve it out buy using AAM. I assign another record in AAM (Custom) and the value is http://win-xxxxxxx:8001 to http://win-xxxxxxx:8001

    impacted URL is http://win-xxxxxxx:8001

    I have no idea whether or not it is better solution. but I suppose the logic should be right.