Seeing "HTTP Error 503. The service is unavailable" when ever I try to access my sharepoint sites on my dev server.

Tevon2.0 1,106 Reputation points
2022-12-01T17:12:34.257+00:00

I'm using Sharepoint Server 2019 on premise.

I tried to use the command "Install-Module -Name Microsoft.Online.SharePoint.PowerShell" which did not work so I (as advised) deleted all the folders beginning with "Microsoft.SharePoint.Client" under the path C:\Windows\Microsoft.NET\assembly\GAC_MSIL and now both of the sites I was working on in my Dev server environment have stopped working completely. I'm now seeing the following on both sites as well as when I try to access the cental Administration page.

"Service Unavailable

HTTP Error 503. The service is unavailable."

What steps need to be taken to rectify this issue so I can regain access to my sharepoint sites?

Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 40,476 Reputation points Microsoft External Staff
    2022-12-02T02:10:24.647+00:00

    Hi @Tevon2.0
    Based on my research, you can do some troubleshooting:

    1. Make sure all SharePoint services are started under Services.msc.
      Go to Services.msc.
      266366-image.png
    2. Go to Internet Information Services(IIS) Manager.
      If the error occurs when accessing the Central Administration site, the SharePoint admin center v4 application pool may be stopped and needs to be started.If the error occurs when accessing the SharePoint site, the SharePoint – 80 application pool may have been stopped and needs to be started.
      For this, select the correct application pool, click Start. Reboot if already started.
    3. If the necessary application pools are started and the error persists, then you should check the group membership of the group IIS_IUSRS and the application pool account in Local Group Policy (visible in IIS Manager).
      Check the group membership of the group "IIS_IUSRS"
      Go to IIS Manager, note the account of the application pool in question in the identity column.
      266357-image.png

    Go to lusrmgr.msc, Open Local Users and Groups and the group "IIS_IUSRS".The application pool account must be a member of this group.
    266298-image.png

    Check the application pool account in Local Group Policy.
    Go to gpedit.msc. Open Local Group Policy Editor.
    Open the following items:
    Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment.
    Verify that the IIS_IUSRS group is included in the following policy:
    "Log on as batch job" and "Impersonate client after authentication"
    266278-image.png

    1. Check ULS log file to check if there are any clues about this issue. The path of ULS log files are C:\Program Files\Common Files\microsoft shared\Web Server Extensions\16\LOGS.
      There is a blog about how to check ULS log for your reference:
      https://blog.machsol.com/microsoft-sharepoint/sharepoint-unified-logging-system-uls

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    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.


    1 person found this answer helpful.

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.