“Web Application Not Found” Error in SharePoint – Detailed Troubleshooting Guide
When you encounter the error message “Web Application not found” in SharePoint, it typically indicates that the requested web application is either unavailable, improperly configured, or facing connectivity issues. Below is a step-by-step detailed guide to troubleshoot and resolve this issue.
🔍 Step 1: Verify That the Web Application Exists
Before proceeding with advanced troubleshooting, confirm that the web application actually exists in SharePoint.
✅ How to Check via SharePoint Central Administration:
- Open SharePoint Central Administration on the SharePoint server.
- Navigate to Application Management → Manage web applications.
- Look for the web application in the list.
- If the web application is missing, it might have been accidentally deleted or not created at all. In that case, you will need to restore it or create a new one.
✅ How to Check via PowerShell:
- Open SharePoint Management Shell as Administrator.
- Run the following command:
Get-SPWebApplication
- This will list all available web applications. If the web application is missing, it needs to be recreated.
🔍 Step 2: Check the IIS (Internet Information Services) Manager
IIS is responsible for hosting SharePoint web applications, so if it’s misconfigured, SharePoint won’t find the web application.
✅ Steps to Verify in IIS:
- Open IIS Manager (Type
inetmgr
in Run or Windows Search). - In the Connections pane, expand the server node and look for your web application under Sites.
- Ensure that:
- The site exists.
- It is in Running status.
- The correct port number is assigned.
- If the site is stopped, right-click and select Start.
🔍 Step 3: Ensure the Application Pool is Running
Each SharePoint web application is associated with an application pool in IIS. If the application pool is stopped, the web application won’t work.
✅ Steps to Check the Application Pool:
- Open IIS Manager.
- Click on Application Pools in the left pane.
- Look for the application pool associated with your web application.
- Ensure that:
- The status is Started.
- The identity (account running the pool) is valid.
- If it’s stopped, right-click and select Start.
🚨 Common Issues with Application Pools:
- If the identity account has expired or changed, update it in Advanced Settings.
- If the pool keeps stopping, check event logs for possible .NET framework or account permission issues.
🔍 Step 4: Verify Alternate Access Mappings (AAM)
If the web application is configured incorrectly in Alternate Access Mappings, SharePoint may fail to find it.
✅ Steps to Check AAM in Central Administration:
- Open SharePoint Central Administration.
- Go to Application Management → Configure alternate access mappings.
- Ensure that the correct internal and public URLs are mapped.
- If necessary, edit or add the correct URL.
🔍 Step 5: Check the SharePoint Service Status
If critical SharePoint services are not running, web applications might become inaccessible.
✅ How to Check Services in Central Administration:
- Open SharePoint Central Administration.
- Navigate to System Settings → Manage services on server.
- Ensure the following services are Started:
- Microsoft SharePoint Foundation Web Application
- SharePoint Timer Service
- Search Service Application
- Distributed Cache (if applicable)
✅ How to Check via PowerShell:
Run the following command to list SharePoint services:
Get-SPServiceInstance | Where-Object {$_.Status -eq "Disabled"}
If a required service is disabled, start it using:
Start-SPServiceInstance -Identity <ServiceID>
🔍 Step 6: Verify Database Connectivity
If SharePoint cannot connect to the SQL database, the web application may not be found.
✅ Steps to Check:
- Open SQL Server Management Studio (SSMS).
- Connect to the SharePoint Content Database.
- Ensure the database is in a Healthy state and not in Suspect mode.
- Run the following query to check the status:
SELECT name, state_desc FROM sys.databases
- If the database is offline, bring it online using:
ALTER DATABASE [YourDatabaseName] SET ONLINE;
- Also, check SQL Server services on the database server:
- SQL Server (MSSQLSERVER)
- SQL Server Agent
- SQL Server Browser
✅ How to Check Database Permissions
Ensure that the SharePoint Farm account has the required permissions:
- In SQL Server Management Studio, expand Security → Logins.
- Find the SharePoint Farm account.
- Ensure it has db_owner permission on the SharePoint databases.
🔍 Step 7: Check DNS and Host File Settings
If DNS is misconfigured, SharePoint might fail to resolve the web application URL.
✅ Steps to Verify:
- Open Command Prompt (cmd) as Administrator.
- Run:
ping yourwebappurl.com
If it fails, there may be a DNS issue. - Check the hosts file (located at
C:\Windows\System32\drivers\etc\hosts
). - Ensure the web application URL is correctly mapped to the correct IP.
🔍 Step 8: Restart IIS and Clear Cache
Sometimes, IIS caching or SharePoint’s object cache can cause this issue.
✅ Steps to Restart IIS:
- Open Command Prompt as Administrator.
- Run:
iisreset /noforce
✅ Steps to Clear SharePoint Configuration Cache:
- Stop the SharePoint Timer Service:
net stop SPTimerV4
- Navigate to:
C:\ProgramData\Microsoft\SharePoint\Config\GUID
(ReplaceGUID
with the actual folder name.) - Delete all XML files except cache.ini.
- Open cache.ini, change its value to 1, and save.
- Restart the SharePoint Timer Service:
net start SPTimerV4
🔍 Step 9: Check Event Viewer Logs
If the issue persists, check Windows Event Logs for detailed errors.
✅ Steps to Access Event Viewer:
- Open Event Viewer (
eventvwr.msc
in Run). - Go to Windows Logs → Application.
- Look for errors related to SharePoint, IIS, or SQL Server.
🔍 Step 10: Final Checks and Restart Services
If none of the above steps resolved the issue, try these final troubleshooting steps:
- Restart SharePoint Timer Service (
SPTimerV4
). - Restart SQL Server Services.
- Restart IIS and the entire SharePoint Server.