A family of Microsoft on-premises document management and storage systems.
Hi @SLRDC HAL
Please note that we're not Microsoft Support; this is a user-to-user community forum. Moderators here don't have access to your environment or Microsoft's backend systems, so we can only provide guidance based on public documentation and community experience.
The issue: “failed to provision… System.IO.FileNotFoundException: web.config file not found” is typically encountered in SharePoint Server environments during web application creation, PSConfig execution, or provisioning operations, and it indicates that SharePoint is unable to locate or complete the creation of the expected IIS configuration files during provisioning.
In most cases, this issue occurs because SharePoint fails to fully provision the IIS virtual directory under: C:\inetpub\wwwroot\wss\VirtualDirectories\<port>\
As a result:
- The web.config file is not created, or
- The file exists but is not accessible due to incomplete provisioning, or
- The IIS site was created but SharePoint configuration did not complete successfully
This leads to the exception: System.IO.FileNotFoundException: web.config file not found
Although the error appears to indicate a missing file, the real issue is usually a failed or partial SharePoint provisioning step, such as:
- Interrupted or failed PSConfig / Product Configuration Wizard
- Incomplete web application creation in Central Administration
- IIS virtual directory created but not properly extended by SharePoint
- Timer service or provisioning process failing mid-deployment
You may check:
1.IIS virtual directory exists
C:\inetpub\wwwroot\wss\VirtualDirectories\
Ensure the correct port folder exists.
2.Check if web.config exists. If the file is missing, provisioning did not complete successfully.
Here are some steps you may try:
1.Restart SharePoint Timer Service
Restart-Service SPTimerV4
2.Re-run SharePoint configuration wizard
psconfig.exe -cmd upgrade -inplace b2b -wait -force
3.Verify permissions
Ensure the SharePoint application pool account and related service groups (WSS_WPG / IIS_IUSRS) have appropriate access to: C:\inetpub\wwwroot\wss\
4.Recreate the Web Application
If the web application is partially created and cannot be repaired, consider removing and recreating it.
I hope this helps.
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.