After upgrading from sharepoint 2013 to sharepoint 2016 ( using the database attach and upgrade method), one of our developers is unable to call the listdata.svc to get data from a sharepoint list
If the developer tries to access the listdata.svc direct, they get asked for credentials and after entering their windows credentials they get a 401 unathorized error.
We can see errors in the event log as per below
WebHost failed to process a request.
Sender Information: System.ServiceModel.Activation.HostedHttpRequestAsyncResult/42270602
Exception: System.Web.HttpException (0x80004005): The service '/Site1/listdata.svc' does not exist. ---> System.ServiceModel.EndpointNotFoundException: The service '/Site1/listdata.svc' does not exist.
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath, EventTraceActivity eventTraceActivity)
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result)
Process Name: w3wp
Process ID: 13864