6

I just installed SP 2013 in a test environment. I created an app pool to be used by the service applications using the Powershell command below:

New_SPServiceApplicationPool -Name "Default SharePoint Service App Pool" -Account domain\service account

If I run the command Get-SPServiceApplicationPool the app pool appears in the list. enter image description here

However, if I open IIS Manager the app pool has a GUID for a name

enter image description here

This is not a critical issue and everything seems to be functioning correctly. I was just wondering if anyone knows why this happened so I can avoid it in future installations.

1
  • 2
    This is unfortunately OOTB behavior for the Service application pools in SharePoint. They have correct names in PowerShell and central admin but guids in IIS Commented Jul 22, 2014 at 13:28

3 Answers 3

5
  1. Open SharePoint Management Shell as Administrator.

  2. Type this cmdlet.

    Get-SPServiceApplicationPool | select Id, Name
    
  3. Open IIS Manager > Application Pool > Match Application Pool GUID with the command result.

For more details, check Get the corresponding SharePoint services name of the Application Pool Guid

2

Service application pools appear in IIS as long random strings of characters. The name you give it in SharePoint is not reflected in IIS Manager.

An IIS Application Pool can have but one unique identifier, it’s Name, for which uniqueness is enforced. It works perfectly. However SharePoint has decided to use GUIDs for this Name. Within Central Administration the Application Pools are displayed using a SharePoint only property – Name, which is actually a Display Name (e.g. SharePoint Web Services Default).

Moreover, the GUIDs used are unique. These aren't “well known GUIDs” like class ids. They will be different on every installation. It would appear the GUID love from SQL server has found it’s way into IIS thru the back door.

http://www.harbar.net/archive/2009/12/04/more-on-sharepoint-2010-application-pools.aspx

2

There IS a way to get rid of those GUID names for the application pools, and it works, too, although this is a hacky way of doing it; I don't know if anyone else does this, and you certainly do it at your own risk.

Most of the time, these GUID names are created by Sharepoint's managed services. If you look in IIS, you will see under "Sites" a site called "Sharepoint Web Services". These Web Applications all have GUIDs, too.

First thing is to figure out what service they are used by:

How to Know What GUID Goes To What

In IIS, go through the "Sites" and find one that has a GUID name. Most of them will be in the "Sharepoint Web Services" site (which should be running, by the way). Select the Web Application and choose "Advanced". You will see something like this:

enter image description here

Three things of note here:

  1. Application Pool: you see the GUID of the app pool this Web Application is using.
  2. Physical Path: If you look at the tail end of the physical path, you can see what service the Application is really using. In the screenshot above, you see it is "SearchService", and it is, indeed, one of those managed Sharepoint Web Services.
  3. Virtual Path: This is the GUID name for this Web Application (the site itself).

How to Change the Application Pool

  1. Okay, now create a new application pool to be used by your Search Service, and assign it the proper login account (something like spsearch or whatever you call yours).
  2. In "Application Pools", select the GUID for the Search Service (which you now know) and click on "View Applications".
  3. Here you will see a list of Web Applications that are using that particular app pool (there may be more than one). Locate the GUID for the Web Application under "Virtual Path" and select it.
  4. Look over in the right panel under "Actions" and choose "Change Application Pool".
  5. Now choose the Application Pool that you created (with a nice name) from the dropdown box.

If the login account has proper credentials, it should begin working immediately.

However, if you create a new web application in SCA, it will create another GUID-named application pool. That's how it works, but you can always change it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.