SharePoint User Profile Service not working after Windows 8 upgrade

So I upgraded to Windows 8 the other day (which I’m really loving so far) but the upgrade broke SharePoint’s user profile service application. I have SharePoint 2010 installed locally on my Windows-7-now-Windows-8-PC for development purposes.

The Problem

There were a variety of symptoms that I won’t list in detail here but basically I couldn’t get into my user profile service application in central admin. ‘An unexpected error occurred’ it told me.

The ULS logs were full of the typical generic user profile service errors (e.g. ‘No User Profile Application available to service the request’) and the event viewer was complaining so fast I couldn’t keep up.

The main errors being reported in the event log were:

The service ‘/SecurityTokenServiceApplication/securitytoken.svc’ cannot be activated due to an exception during compilation. (event ID 3)


An exception occurred when trying to issue security token: The requested service, ‘http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc/actas’ could not be activated. (event id 8306)

So it seemed to be a problem with the Security Token Service. Navigating to the URL listed in the error message above (http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc) showed me an error page.

The Solution

Like any SharePoint administrator worth his salt, I immediately hit Google.

Many opened tabs later I stumbled across this post, which offered a solution that worked: re-provision all the SharePoint Web Services. The author says that this is, “one of the safest ways” to get the Security Token Service working.

Near the bottom of the post is a list of commands to enter into SharePoint PowerShell, which I did:

$h = Get-SPServiceHostconfig


$services = Get-SPServiceApplication

foreach ($service in $services) { $service.provision();
write-host $}

Once the commands were run I did an IISRESET then tried to access my user profile service application. Success!

Thanks Syed and Abhishek 🙂



2 thoughts on “SharePoint User Profile Service not working after Windows 8 upgrade

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s