Events
Microsoft 365 Community Conference
May 6, 2 PM - May 9, 12 AM
Skill up for the era of AI at the ultimate community-led Microsoft 365 event, May 6-8 in Las Vegas.
Learn moreThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
You can't start the SharePoint Foundation Web Application service in Microsoft SharePoint Server 2013 or Microsoft SharePoint Server 2010. The service gets stuck during startup, and the following error entry is logged in the ULS logs:
Provision of service failed. The process cannot access the file 'C:\inetpub\wwwroot\wss\VirtualDirectories\<web_app_name>\_app_bin\STSSOAP.DLL' because it is being used by another process. If this is a Web service, IIS must be restarted for the change to take effect. To restart IIS, open a command prompt window and type "iisreset /noforce".
The issue occurs because of an antivirus scan.
Note
When the SharePoint Foundation Web Application service is stopped, you may lose web.config changes and other customizations. We recommend that you back up the C:\inetpub\wwwroot\wss\VirtualDirectories folder before you apply this fix.
To resolve the issue, follow these steps:
Follow the guidance in KB 952167 to exclude certain folders from antivirus scanning.
Run the following PowerShell commands to stop the SharePoint Foundation Web Application service:
$service = Get-SPServiceInstance -Server $server | where-object {$_.TypeName -eq "Microsoft SharePoint Foundation Web Application"}
Stop-SPServiceInstance $service
After the SharePoint Foundation Web Application service is stopped, check whether there are any remnants of SharePoint sites in IIS Manager, and delete any existing sites from IIS Manager.
Clear the SharePoint configuration cache. For the steps to do this, see this Developer article.
Run the following command to provision the service:
stsadm -o provisionservice -action start -servicetype spwebservice
Still need help? Go to SharePoint Community.
Events
Microsoft 365 Community Conference
May 6, 2 PM - May 9, 12 AM
Skill up for the era of AI at the ultimate community-led Microsoft 365 event, May 6-8 in Las Vegas.
Learn moreTraining
Module
Troubleshoot operating system service issues - Training
This module discusses the role of operating system services and how to troubleshoot issues that restrict functionality. This module also discusses resolving issues with signing in to Windows.