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. It usually indicates that SharePoint is unable to locate or properly provision the IIS virtual directory and its associated configuration files during setup.
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
- The IIS virtual directory exists but is not fully provisioned by SharePoint
- The web application creation or PSConfig process was interrupted or failed
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.Verify 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 Timer Service account and IIS Application Pool identity have proper 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.