During setting up my User Profile Service in SharePoint 2013 I run into an error after the databases and the Application Pool was already created. To start over and try again (still beta, right?) I deleted my User Profile Service Application including the Databases and tried to recreate the User Profile Service with the same settings. This time hitting “OK” I run into an error telling me an Application Pool with the same name already exists.
My first thought was to look up the Application Pools in the IIS Manager, but the Application Pool in question was missing:
Listing the SharePoint Application Pool in the SharePoint Management Shell shows me that the App Pool is still there.
Great, seems like the connection got lost somehow!
To remove the orphaned Application pool, you can run the following command:
Remove-SPServiceApplicationPool –Identity “UserProfileServiceApplicationPool”
Keep in mind, that the Identity is the name and not the ID of the Application Pool. Following listing shows the command and the result listing the available Application Pools again.
Ok…new try creating the User Profile Service!