locked
Error creating MySite: There has been an error creating the personal site

    Question

  • Hi,

    When creating a MySite users get this error message:

    There has been an error creating the personal site. Contact your site administrator for more information.

    Here is our setup:

    • 1 web application for central administration
    • 1 web application for ssp administration site
    • 1 web application at port 80 (collaboration portal)
      • this web app uses (and requires) SSL
      • managed path: "mysite" (explicit inclusion)
      • managed path: "personal"(wildcard inclusion)
      • site collection based on the MySite Host on the "mysite" managed path
    • SSP: personal site provider: https://[portalurl]:443/mysite/
    • SSP: personal site location: "personal"

    Initially we hosted the the MySites in a separate web application, but we migrated them to this new setup. The users who had a mysite before the migration have no issue, they can get to their mysite just fine.

    If I look in the SharePoint logs I find this error message: "Value does not fall within the expected range"

    Any ideas what we are doing wrong?

    Here's an extract of the logfile:

    CreatePersonalSite: Testing for personal site at: https://[portalurl]/personal/demo. e3066f3f-0715-472d-b67e-e59fee093a90
    Attempting to create personal site at 'https://[portalurl]/personal/demo'. e3066f3f-0715-472d-b67e-e59fee093a90
    Creating site https://[portalurl]/personal/demo in content database [contentdatabasename] 
    Creating top level site at https://[portalurl]/personal/demo 
    Unknown SPRequest error occurred. More information: 0x80070057 
    The site /personal/demo could not be created.  The following exception occured: Value does not fall within the expected range.. 
    Failed to create personal site ([domain]\demo, https://[portalurl]/personal/demo): System.ArgumentException: Value does not fall within the expected range.     at Microsoft.SharePoint.Library.SPRequestInternalClass.SscCreateSite(Guid gApplicationId, String bstrUrl, String bstrServerRelativeUrl, Int32 lZone, Guid gSiteId, Guid gDatabaseId, String bstrDatabaseServer, String bstrDatabaseName, String bstrDatabaseUsername, String bstrDatabasePassword, String bstrTitle, String bstrDescription, UInt32 nLCID, String bstrWebTemplate, String bstrOwnerLogin, String bstrOwnerName, String bstrOwnerEmail, String bstrSecondaryContactLogin, String bstrSecondaryContactName, String bstrSecondaryContactEmail, Boolean bADAccountMode)     at Microsoft.SharePoint.Library.SPRequest.SscCreateSite(Guid gApplicat... e3066f3f-0715-472d-b67e-e59fee093a90
    ...ionId, String bstrUrl, String bstrServerRelativeUrl, Int32 lZone, Guid gSiteId, Guid gDatabaseId, String bstrDatabaseServer, String bstrDatabaseName, String bstrDatabaseUsername, String bstrDatabasePassword, String bstrTitle, String bstrDescription, UInt32 nLCID, String bstrWebTemplate, String bstrOwnerLogin, String bstrOwnerName, String bstrOwnerEmail, String bstrSecondaryContactLogin, String bstrSecondaryContactName, String bstrSecondaryContactEmail, Boolean bADAccountMode)     at Microsoft.SharePoint.Administration.SPSiteCollection.Add(SPContentDatabase database, String siteUrl, String title, String description, UInt32 nLCID, String webTemplate, String ownerLogin, String ownerName, String ownerEmail, String secondaryContactLogin, String secondaryContactName, String secondaryContactEmail... e3066f3f-0715-472d-b67e-e59fee093a90
    ..., String quotaTemplate, String sscRootWebUrl, Boolean useHostHeaderAsSiteName)     at Microsoft.SharePoint.SPSite.SelfServiceCreateSite(String siteUrl, String title, String description, UInt32 nLCID, String webTemplate, String ownerLogin, String ownerName, String ownerEmail, String contactLogin, String contactName, String contactEmail, String quotaTemplate)     at Microsoft.Office.Server.UserProfiles.UserProfile.<>c__DisplayClass2.<CreateSite>b__0(). e3066f3f-0715-472d-b67e-e59fee093a90
    My Site creation failure for user '[domain]\demo' for site url 'https://[portalurl]/personal/demo'. The exception was: Microsoft.Office.Server.UserProfiles.PersonalSiteCreateException: A failure was encountered while attempting to create the site. ---> System.ArgumentException: Value does not fall within the expected range.     at Microsoft.SharePoint.Library.SPRequestInternalClass.SscCreateSite(Guid gApplicationId, String bstrUrl, String bstrServerRelativeUrl, Int32 lZone, Guid gSiteId, Guid gDatabaseId, String bstrDatabaseServer, String bstrDatabaseName, String bstrDatabaseUsername, String bstrDatabasePassword, String bstrTitle, String bstrDescription, UInt32 nLCID, String bstrWebTemplate, String bstrOwnerLogin, String bstrOwnerName, String bstrOwnerEmail, String bstrSecondaryContactLo... e3066f3f-0715-472d-b67e-e59fee093a90
    ...gin, String bstrSecondaryContactName, String bstrSecondaryContactEmail, Boolean bADAccountMode)     at Microsoft.SharePoint.Library.SPRequest.SscCreateSite(Guid gApplicationId, String bstrUrl, String bstrServerRelativeUrl,  e3066f3f-0715-472d-b67e-e59fee093a90
    Exception while creating personal site for '[domain]\demo': Microsoft.Office.Server.UserProfiles.PersonalSiteCreateException: A failure was encountered while attempting to create the site. ---> System.ArgumentException: Value does not fall within the expected range.     at Microsoft.SharePoint.Library.SPRequestInternalClass.SscCreateSite(Guid gApplicationId, String bstrUrl, String bstrServerRelativeUrl, Int32 lZone, Guid gSiteId, Guid gDatabaseId, String bstrDatabaseServer, String bstrDatabaseName, String bstrDatabaseUsername, String bstrDatabasePassword, String bstrTitle, String bstrDescription, UInt32 nLCID, String bstrWebTemplate, String bstrOwnerLogin, String bstrOwnerName, String bstrOwnerEmail, String bstrSecondaryContactLogin, String bstrSecondaryContactName, String bstrSecondaryContac... e3066f3f-0715-472d-b67e-e59fee093a90
    ...tEmail, Boolean bADAccountMode)     at Microsoft.SharePoint.Library.SPRequest.SscCreateSite(Guid gApplicationId, String bstrUrl, String bstrServerRelativeUrl, Int32 lZone, Guid gSiteId, Guid gDatabaseId, String bstrDatabaseServer, String bstrDatabaseName, String bstrDatabaseUsername, String bstrDatabasePassword, String bstrTitle, String bstrDescription, UInt32 nLCID, String bstrWebTemplate, String bstrOwnerLogin, String bstrOwnerName, String bstrOwnerEmail, String bstrSecondaryContactLogin, String bstrSecondaryContactName, String bstrSecondaryContactEmail, Boolean bADAccountMode)     at Microsoft.SharePoint.Administration.SPSiteCollection.Add(SPContentDatabase database, String siteUrl, String title, String description, UInt32 nLCID, String webTemplate, String ownerLogin, String ownerName, ... e3066f3f-0715-472d-b67e-e59fee093a90
    ...String ownerEmail, String secondaryContactLogin, String secondaryContactName, String secondaryContactEmail, String quotaTemplate, String sscRootWebUrl, Boolean useHostHeaderAsSiteName)     at Microsoft.SharePoint.SPSite.SelfServiceCreateSite(String siteUrl, String title, String description, UInt32 nLCID, String webTemplate, String ownerLogin, String ownerName, String ownerEmail, String contactLogin, String contactName, String contactEmail, String quotaTemplate)     at Microsoft.Office.Server.UserProfiles.UserProfile.<>c__DisplayClass2.<CreateSite>b__0()     --- End of inner exception stack trace ---     at Microsoft.Office.Server.UserProfiles.UserProfile.<>c__DisplayClass2.<CreateSite>b__0()     at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state)     at Microsoft.Shar... e3066f3f-0715-472d-b67e-e59fee093a90
    ...ePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()     at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)     at Microsoft.Office.Server.UserProfiles.UserProfile.CreateSite(String strRequestUrl, Boolean bCollision, Int32 lcid)     at Microsoft.Office.Server.UserProfiles.UserProfile.CreatePersonalSite(Int32 lcid). e3066f3f-0715-472d-b67e-e59fee093a90
    An SPRequest object was not disposed before the end of this thread.  To avoid wasting system resources, dispose of this object or its parent (such as an SPSite or SPWeb) as soon as you are done using it.  This object will now be disposed.  Allocation Id: {0A19DC65-7DF4-462B-9C4B-955C92521D53}  To determine where this object was allocated, create a registry key at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\HeapSettings.  Then create a new DWORD named SPRequestStackTrace with the value 1 under this key. 
    BackgroundTaskManager.ExecuteBackgroundTasks: Starting task SessionManager.PerformSessionTimeouts 

     

    • Moved by Mike Walsh FIN Tuesday, October 14, 2008 4:29 PM MySite (Moved from SharePoint - Setup, Upgrade, Administration and Operation to SharePoint - Social Computing)
    Tuesday, February 06, 2007 9:45 PM

Answers

  • Hi Ton,

     

    In the setup you supplied add the account configured as the Applicaiton Pool Identity for the web site at port 80 (collaboration portal) to the "Farm Administrators" group through the Central Administration pages.

    After that perform an IISReset.

    This should fix the problem.

    I am still performing some research on this matter to determine the impact of adding the AppPool identity to your Farm Administrators group.

     

     

    During my research so far I also found another solution below:

    Another way to get arround this issue is to add the AppPool identity to the "Local Administrators" group on every web front-end server hosting the web site under which the My Sites are created but this has impact on the machine security.

    While making a My Site some process in the back needs certain local permissions on the web front-end machines which are provided either by adding the AppPool identity to the "Local Administrators" group or by adding it to the "Farm Administrators" group through Central Administration pages.

     

    Friday, February 09, 2007 12:05 PM

All replies

  • Hi Ton,

     

    In the setup you supplied add the account configured as the Applicaiton Pool Identity for the web site at port 80 (collaboration portal) to the "Farm Administrators" group through the Central Administration pages.

    After that perform an IISReset.

    This should fix the problem.

    I am still performing some research on this matter to determine the impact of adding the AppPool identity to your Farm Administrators group.

     

     

    During my research so far I also found another solution below:

    Another way to get arround this issue is to add the AppPool identity to the "Local Administrators" group on every web front-end server hosting the web site under which the My Sites are created but this has impact on the machine security.

    While making a My Site some process in the back needs certain local permissions on the web front-end machines which are provided either by adding the AppPool identity to the "Local Administrators" group or by adding it to the "Farm Administrators" group through Central Administration pages.

     

    Friday, February 09, 2007 12:05 PM
  • My guess is that your managed paths configuration is invalid. What you should do is delete the personal path altogether (since you create sites under mysite). And change the inclusion type for mysite to wildcard. In the current setup, requests to mysite/personal are ignored by SharePoint because explicit inclusion only means this exact path is taken over by SharePoint, not its descendants.

    Hope this helps,

    Friday, February 09, 2007 12:30 PM
  • yes! that did the trick. thanks
    Friday, February 09, 2007 4:17 PM
  • thanks for the help kiral, but the managed paths actually are correct. It now works thanks to Vincent's reply.
    Friday, February 09, 2007 4:18 PM
  •  

    Thanks - this made my day!

    There should be a hot fix on its way from MS though?

     

    Wednesday, August 22, 2007 8:57 PM
  • Just so I'm on the same page as everyone else.  The fix was to use the AppPool Indentity in the "Administrators" group on the local front-end server?  My current setup is a stand-alone portal server and the AppPool Indentity being used is the network service account IWAM_server-name.  Can I use this account or should I change to another admin account in the AppPool Identity?  Thanks for lack of understanding...

     

    Tom

     

    Wednesday, October 03, 2007 6:10 AM
  •  

    Adding the users to the farm admin worked like a champ!

     

    Thanks!

    Thursday, November 22, 2007 3:53 PM
  • This worked for me, too. You're a champ!
    Friday, August 01, 2008 2:30 AM
  • Try doing IISRESET before doing anything else.
    Tuesday, October 14, 2008 2:04 PM
  • Vincent's fix works really good. The other solution I found to this was to enable ASP .Net impersonation in IIS (IIS 7). This will allow the worker process to impersonate the logged in administrator account and should work flawlessly....I believe this solution would be also more secured.
    • Proposed as answer by MPS Partners Friday, November 07, 2008 3:14 PM
    • Edited by MPS Partners Friday, November 07, 2008 3:15 PM
    • Unproposed as answer by Mike Walsh FIN Wednesday, March 03, 2010 5:21 AM
    Friday, November 07, 2008 3:13 PM
  • How to set the Application pool identity to Farm administrators. I am goin to IIS manager and right click application pool ->properties->identity tab but there is no option of setting it to farm administrators.The option that I am getting is Network Service,Local Service and Local System but no option of Farm administrators.Can anyone help me in this.
    Regards, Bhuttan
    Friday, April 17, 2009 3:20 PM
  • Hello,

    The same error happened to me. It indeed results from the account servicing for the Applicaton Pool of MySite.

    But it fails againt even I add the account to the 'Farm Administrators' group or the local 'Administrators' group of the Web Server.

    At last it works when I take the MOSS config account for the Application Pool.

    In my case, I put the SSP and MySite in the same IIS site. I think that the SSP requires much more permissions. 

    It's a big challenge for us to do the troubleshooting. Hope that the SharePoint team gives more senseful messages about this kind of error in future version.


    Hope helpful.

    Xiaofeng Wang | MVP(ASP/ASP.NET) | Beijing P.R.C
    • Proposed as answer by Xiaofeng Wang Wednesday, April 29, 2009 6:07 AM
    • Unproposed as answer by Mike Walsh FIN Wednesday, March 03, 2010 5:21 AM
    Wednesday, April 29, 2009 6:07 AM
  • A twist to the above given solution:

    I added the AppPool user as the Farm administrator and clicked on the mysite link. The profile got created. SUCESS!!

    Then, i removed the AppPool user from the Farm admin group, and clicked my site link as a different user (this user does not have a profile created yet) and the profile got created. SUCCESS!!


    Wednesday, July 01, 2009 6:45 AM
  • This has also fixed it for me.

    To the above poster: Did you also do an IISRESET in between the tests?

    Thanks.
    Wednesday, July 01, 2009 1:05 PM
  • It is really bad idea to add application pool account to any Administrators group if it is not really needed.

    I have digged a little deeper and have found that giving mysite host apppool account all personalization services permissions in SSP administration app works well too.

    Try it.

    Renatas.
    Monday, December 07, 2009 7:25 PM
  • Giving mysite host apppool account all personalization services permissions in SSP administration app does NOT work in the environment I have here.
    Neither did adding it to the local Admins group on the WFE.
    Neither did adding it to the WSS_ADMIN_WPG.

    In our environment this is most likely an issue with Alternate Access Mappings.
    Tuesday, December 08, 2009 2:27 PM
  • Hi Andy,

    I had a similar problem this morning and none of the above worked.  In the end I found that my problem was the APP POOL account did not have any Shared Service Rights.

    As soon as I  granted it permissions mysites creation started working.

    http://<ssp>/_layouts/ManageServicePermissions.aspx

    HTH

    Arnie


    Anand raju
    Monday, February 22, 2010 1:07 AM
  • Another cause of this is if there's a user that already has a site by that name. But wait, before commenting.

    I created a user long ago and one day it got deleted.  Sharepoint still had the site, same account name, but my guess under a different GUID for the user. If I can find the log I'll edit this post so that it shows what the issue is if you had a deleted user but not a deleted sharepoint site for that user.
    Wednesday, March 03, 2010 12:02 AM
  • Hi, 

     

    I am also Stuck with this same Error. I am using two different domain. I have added trusted domain user as "Farm Administrator". Also in MySite site Collection Owner Group. 

     

    Whenever I logged in as Local domain User Account, and click on "Content" tab then It will create Site Collection. but whenever I logged in as Trusted domain user Account I getting error message. "There has been an error creating the personal site. Contact your site administrator for more information."

     

    Means It is working for Local domain Account but not working for Trusted domain Account.. ??

     

    Help me for this.. Thanks in Advance..

    Tuesday, October 26, 2010 3:42 PM
  • I followed all the advice above, and i'm still getting this issue. Here is the error in the logfile - the usually informed 'object reference not set'.

    59  w3wp.exe (0x0C48)                        0x1704 SharePoint Portal Server       User Profiles                  ogso Medium   CreatePersonalSite: Testing for personal site at: http://<domain>/my/personal/nborges. 819c278b-747f-492e-a92a-ecb547a63310
    01/05/2011 11:56:14.

    64  w3wp.exe (0x0C48)                        0x1704 SharePoint Portal Server       User Profiles                  ogup Medium   Attempting to create personal site at 'http://vdc01sp01.idc.logitech.com/my/personal/nborges'. 819c278b-747f-492e-a92a-ecb547a63310
    01/05/2011 11:56:14.

    66  w3wp.exe (0x0C48)                        0x1704 SharePoint Portal Server       User Profiles                  ogvf High     Failed to create personal site (IDC\nborges, http://<domain>/my/personal/nborges): System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.Office.Server.UserProfiles.UserProfile.<>c__DisplayClass5.<CreateSite>b__3(). 819c278b-747f-492e-a92a-ecb547a63310
    01/05/2011 11:56:14.

    66  w3wp.exe (0x0C48)                        0x1704 SharePoint Portal Server       Administration                 5187 Critical My Site creation failure for user 'IDC\nborges' for site url 'http://vdc01sp01.idc.logitech.com/my/personal/nborges'. The exception was: Microsoft.Office.Server.UserProfiles.PersonalSiteCreateException: A failure was encountered while attempting to create the site. ---> System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.Office.Server.UserProfiles.UserProfile.<>c__DisplayClass5.<CreateSite>b__3()     --- End of inner exception stack trace ---     at Microsoft.Office.Server.UserProfiles.UserProfile.<>c__DisplayClass5.<CreateSite>b__3()     at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()     at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)     at Microsoft.Sha... 819c278b-747f-492e-a92a-ecb547a63310
    01/05/2011 11:56:14.

    66* w3wp.exe (0x0C48)                        0x1704 SharePoint Portal Server       Administration                 5187 Critical ...rePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)     at Microsoft.Office.Server.UserProfiles.UserProfile.CreateSite(String strRequestUrl, Boolean bCollision, Int32 lcid). 819c278b-747f-492e-a92a-ecb547a63310
    01/05/2011 11:56:14.

    66  w3wp.exe (0x0C48)                        0x1704 SharePoint Portal Server       User Profiles                  ogsj High     Exception while creating personal site for 'IDC\nborges': Microsoft.Office.Server.UserProfiles.PersonalSiteCreateException: A failure was encountered while attempting to create the site. ---> System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.Office.Server.UserProfiles.UserProfile.<>c__DisplayClass5.<CreateSite>b__3()     --- End of inner exception stack trace ---     at Microsoft.Office.Server.UserProfiles.UserProfile.<>c__DisplayClass5.<CreateSite>b__3()     at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()     at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object pa... 819c278b-747f-492e-a92a-ecb547a63310
    01/05/2011 11:56:14.

    66* w3wp.exe (0x0C48)                        0x1704 SharePoint Portal Server       User Profiles                  ogsj High     ...ram)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)     at Microsoft.Office.Server.UserProfiles.UserProfile.CreateSite(String strRequestUrl, Boolean bCollision, Int32 lcid)     at Microsoft.Office.Server.UserProfiles.UserProfile.CreatePersonalSite(Int32 lcid). 819c278b-747f-492e-a92a-ecb547a63310
    01/05/2011 11:56:14.70  w3wp.exe (0x0C48)  

    Wednesday, January 05, 2011 5:16 PM
  • Rab,

    My server was setup with all the proper accounts as provided in this thread, then also i was getting same error as yours. I could fix after long struggle..

    I took 5 minute break and try to trace end-to-end, I found one missing piece, a site collection on root.

    As per my sites archirecture, we application where mysites are going to be created, should have a site collection on root. i.e if you have webapp at port 80 then a site collection should be created at http://server.

    I created site collection on root and then provisioned the my site, it just got created...

    Hope this can help.

    Monday, March 21, 2011 4:14 PM