How to fix error "The service... /listdata.svc does not exist"

Greg Booth 1,371 Reputation points
2023-04-12T15:42:13.21+00:00

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

Microsoft 365 and Office SharePoint Server For business
0 comments No comments
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2023-04-13T01:41:30.9966667+00:00

    Hi @Greg Booth

    You can enable includeExceptionDetailInFaults to get more response of the error message. Database connection also cause the issue. Please check the status of your database. And I found a similar issue with yours, please make a reference

    https://stackoverflow.com/questions/4819170/how-to-troubleshoot-system-web-httpexception-0x80004005-file-does-not-exist

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.