A family of Microsoft on-premises document management and storage systems.
The error indicates that SharePoint cannot find a required web.config file during provisioning. This typically happens when web.config files are missing, inconsistent, or inaccessible on one or more web front-end servers.
Follow these steps on all SharePoint front-end servers:
- Confirm permissions to web.config
Ensure the account being used is:- A member of the Farm Administrators group.
- A local Administrators group member on the server.
Only local admins, farm admins, or accounts managed by SharePoint can access web.config by default.
- Locate the web.config file for the affected web application
On the failing server:- Browse to
C:\inetpub\wwwroot\wss\VirtualDirectories\<Port_Number>(for example,C:\inetpub\wwwroot\wss\VirtualDirectories\80). - Verify that web.config exists in that folder.
- If it does not exist, copy it from a healthy front-end server hosting the same web application.
- Browse to
- Ensure web.config files are identical across the farm
If there are multiple front-end web servers:- On each server, go to the corresponding
VirtualDirectories\<Port_Number>folder and note the modified date of web.config. - Compare the web.config files (for example, using a text comparison tool) and decide which one is correct.
- On each failing server, delete the incorrect web.config and copy the correct one from a working server.
- On each server, go to the corresponding
- Verify and edit via IIS if needed
On each front-end server:- Open Server Manager → Tools → Internet Information Services (IIS) Manager.
- In Connections, expand the server → Sites → select the affected site.
- In Features View, double-click Configuration Editor to inspect sections of web.config if needed.
- Back up before further changes
Before stopping services or reprovisioning, back upC:\inetpub\wwwroot\wss\VirtualDirectoriesbecause stopping the SharePoint Foundation Web Application service can cause loss of web.config changes and other customizations. - If provisioning is stuck due to file locks
If the error appears while starting or provisioning the SharePoint Foundation Web Application service and ULS logs show file-in-use errors (for example, STSSOAP.DLL):- Exclude the SharePoint folders from antivirus scanning as per KB 952167.
- Stop the SharePoint Foundation Web Application service using PowerShell:
$service = Get-SPServiceInstance -Server $server | where-object {$_.TypeName -eq "Microsoft SharePoint Foundation Web Application"} Stop-SPServiceInstance $service - Remove any leftover sites in IIS Manager for that web application.
- Clear the SharePoint configuration cache.
- Reprovision the service:
stsadm -o provisionservice -action start -servicetype spwebservice
After these steps, rerun the provisioning/configuration operation that was failing.
References: