When I tried to browse a SharePoint Portal, I got the following error:
500 - Internal Server Error
This issue might occur because of
- The Web config file might have been modified in incorrect format.
- An Application Pool might have been stopped.
*The Web config file was modified in incorrect format
- Open IIS Manager.
- Try to browse the SharePoint site.
- The error details should be displayed as shown below.
In my case, I forget to surround the attribute value with a double quotation. (Note: Before updating the Web Config you should take a copy to allow a roll back).
- Locate the web config file of SharePoint web application with its related port.
- Edit the config file with an appropriate editor.
- Save and close.
- Repeat all previous steps for all Web config within the SharePoint servers.
- Try to browse the site again that should be working correctly.
**An Application Pool was stopping.
- I Opened IIS Manager to make sure application pools was running,
- I found out that an application pool was stopping as shown below. (Note: To know What’s the corresponding service name for each service GUID check this article.)
- I tried to start the stopped application pool that has been started then quickly stopped again!
This issue may occur If the password of Application Pool Identity has been changed.that unfortunately, is not automatically updated in the Application Pool and requires to be updated manually by following:
- Again, Right Click on Application Pool > Advanced Settings.
- Below Process Model > Identity.
- Update the credential info.
- Perform “iisreset” via command prompt.
- Navigate back to IIS to make sure that the application pool has been started successfully.
- Try to browse the SharePoint Portal again, that should be now worked properly.