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

Error message

Event ID 8306: Could not connect tohttp://localhost:33432/SecurityTokenServiceApplication/securitytoken.svc/actas. TCP error code 10061: No connection could be made because the target machine actively refused it ::1:33432.

Event ID 8011: A Word or PowerPoint front end failed to communicate with backend machine http://sp:33432/jg63df8d76084b14a40ac90540b7c422/Conversion.svc

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()}

 See Also