症状
Microsoft SharePoint Server 2013 または Microsoft SharePoint Server 2010 で SharePoint Foundation Web アプリケーション サービスを開始することはできません。 サービスが起動中にスタックし、次のエラー エントリが ULS ログに記録されます。
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".
原因
この問題は、ウイルス対策スキャンが原因で発生します。
解決策
注
SharePoint Foundation Web アプリケーション サービスが停止すると、web.config の変更やその他のカスタマイズが失われる可能性があります。 この修正プログラムを適用する前に、C:\inetpub\wwwroot\wss\VirtualDirectories フォルダーをバックアップすることをお勧めします。
この問題を解決するには、次の手順を実行します:
特定のフォルダーをウイルス対策スキャンから除外するには、 KB 952167 のガイダンスに従ってください。
次の PowerShell コマンドを実行して、SharePoint Foundation Web アプリケーション サービスを停止します。
$service = Get-SPServiceInstance -Server $server | where-object {$_.TypeName -eq "Microsoft SharePoint Foundation Web Application"} Stop-SPServiceInstance $serviceSharePoint Foundation Web アプリケーション サービスが停止したら、IIS マネージャーで SharePoint サイトの残りの部分があるかどうかを確認し、IIS マネージャーから既存のサイトを削除します。
SharePoint 構成キャッシュをクリアします。 これを行う手順については、 この開発者向け記事を参照してください。
次のコマンドを実行して、サービスをプロビジョニングします。
stsadm -o provisionservice -action start -servicetype spwebservice
詳細情報
まだ助けが必要ですか? SharePoint コミュニティに移動します。