SharePoint Troubleshooting: Web Services missing IIS - Event ID 8306 and 8011

Issue

The entire « SharePoint Web Services » IIS-Web Site was gone or on some servers, the IIS-Web Site was still there but the applications were missing. On other servers, everything was there but it still doesn’t work.

Solution

Recreate the « SharePoint Web Services » IIS-Web Site including all applications.

Use the following PowerShell-script to recreate the IIS-Web Site:
$Type = [System.Type]::GetType("Microsoft.SharePoint.Administration.SPIisWebServiceSettings, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c")
$Instance = $Type::Default
$Method = $Type.GetMethod("ProvisionLocal", "Instance, NonPublic", $null, @(), $null)
$Method.Invoke($Instance, $null)
$Method = $Type.GetMethod("Provision", "Instance, Public", $null, @(), $null)
$Method.Invoke($Instance, $null)
The « SharePoint Web Services » IIS-Web Site including the Application Pool « SharePoint Web Services Root would be created but no applications for the SharePoint Service Applications.

To get the Service Applications registered, execute the following script:
Get-SPServiceApplication | ForEach-Object {$_.Provision()}

Comments

Popular posts from this blog

SharePoint Integration with IIS

How to Create an Auto-Incrementing Number Field in a SharePoint List

Error:Installing product D:\exchangeserver.msi failed. Fatal error during installation. Error code is 1603.