SharePoint Foundation Web アプリケーション サービスを開始できません

現象

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 Application サービスが停止すると、web.config の変更やその他のカスタマイズが失われる可能性があります。 この修正プログラムを適用する前に、C:\inetpub\wwwroot\wss\VirtualDirectories フォルダーをバックアップすることをお勧めします。

この問題を解決するには、次の手順を実行します。

  1. 特定のフォルダーをウイルス対策スキャンから除外するには、 KB 952167 のガイダンスに従ってください。

  2. 次の PowerShell コマンドを実行して、SharePoint Foundation Web アプリケーション サービスを停止します。

    $service = Get-SPServiceInstance -Server $server | where-object {$_.TypeName -eq "Microsoft SharePoint Foundation Web Application"}  
    Stop-SPServiceInstance $service
    
  3. SharePoint Foundation Web アプリケーション サービスが停止したら、IIS マネージャーに SharePoint サイトの残りの部分があるかどうかをチェックし、IIS マネージャーから既存のサイトを削除します。

  4. SharePoint 構成キャッシュをクリアします。 これを行う手順については、 こちらの開発者向け記事を参照してください。

  5. 次のコマンドを実行して、サービスをプロビジョニングします。

    stsadm -o provisionservice -action start -servicetype spwebservice  
    

詳細

さらにヘルプが必要ですか? SharePoint コミュニティにアクセスしてください。