none
Error Creating Site Collection

    Question

  • Hello,

    I have created a basic claims-based web app in SharePoint 2010. When I try to create a Site Collection, after filling out all the details, I get the following error:

     

    Error 

    Cannot complete this action.

    Please try again. 

    Troubleshoot issues with Microsoft SharePoint Foundation. 

    Correlation ID: 349b9ae9-7bda-41eb-921a-87974afb289c 

     

    I have tried ever which way to try and get it to work, but am still stuck. Any ideas as to why I can't create a Site Collection?

    Thanks!

    Wednesday, August 18, 2010 7:21 PM

Answers

  • Unfortunately, no. 

     

    I decided to re-install and , instead of using farm mode, used stand alone. This immediately resolved the webapp issue. There must have been an installation or configuration error, but so far I have no clue what to do otherwise.

    • Marked as answer by naruwan Tuesday, September 21, 2010 5:08 PM
    Tuesday, September 21, 2010 5:08 PM

All replies

  • you will find more details associated with the correlation id in the log file; use the Logviewer http://ulsviewer.codeplex.com/  to grab the error message.
    Serge Luca; MVP blog: http://sergeluca.spaces.live.com Devoteam Belgium. http://twitter.com/sergeluca
    Wednesday, August 18, 2010 8:08 PM
  • Thanks for the tip! I used ULSVIEWER to find the error message. I don't quite know what's relevant, but I've cleaned it up a bit here:

    =================== LOG START ===================

    Creating top level site at http://siteurl:2010/ 349b9ae9-7bda-41eb-921a-87974afb289c

    Creating site: URL "/" 349b9ae9-7bda-41eb-921a-87974afb289c

    ERROR: Failed to OpenThreadToken, LastError=1008 349b9ae9-7bda-41eb-921a-87974afb289c

    Cannot create site: "http://siteurl:2010/" for owner "i:0#.w|domain\guestuser1", Error: , 0x24a9b4d0 349b9ae9-7bda-41eb-921a-87974afb289c

    Cannot complete this action.  Please try again. 349b9ae9-7bda-41eb-921a-87974afb289c

    The site / could not be created.  The following exception occurred: Cannot complete this action.  Please try again.. 349b9ae9-7bda-41eb-921a-87974afb289c

    Leaving Monitored Scope (Creating Site workplease). Execution Time=555.124184777674 349b9ae9-7bda-41eb-921a-87974afb289c

    System.Runtime.InteropServices.COMException: Cannot complete this action.  Please try again.    at Microsoft.SharePoint.Library.SPRequestInternalClass.CreateSite(Guid gApplicationId, String bstrUrl, Int32 lZone, Guid gSiteId, Guid gDatabaseId, String bstrDatabaseServer, String bstrDatabaseName, String bstrDatabaseUsername, String bstrDatabasePassword, String bstrTitle, String bstrDescription, UInt32 nLCID, String bstrOwnerLogin, String bstrOwnerUserKey, String bstrOwnerName, String bstrOwnerEmail, String bstrSecondaryContactLogin, String bstrSecondaryContactUserKey, String bstrSecondaryContactName, String bstrSecondaryContactEmail, Boolean bADAccountMode, Boolean bHostHeaderIsSiteName)     at Microsoft.SharePoint.Library.SPRequest.CreateSite(Guid gApplicationId, String bstrUrl, Int32 lZone... 349b9ae9-7bda-41eb-921a-87974afb289c

    ..., Guid gSiteId, Guid gDatabaseId, String bstrDatabaseServer, String bstrDatabaseName, String bstrDatabaseUsername, String bstrDatabasePassword, String bstrTitle, String bstrDescription, UInt32 nLCID, String bstrOwnerLogin, String bstrOwnerUserKey, String bstrOwnerName, String bstrOwnerEmail, String bstrSecondaryContactLogin, String bstrSecondaryContactUserKey, String bstrSecondaryContactName, String bstrSecondaryContactEmail, Boolean bADAccountMode, Boolean bHostHeaderIsSiteName) 349b9ae9-7bda-41eb-921a-87974afb289c

    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: {62F6BEC0-E9BF-4A0C-A7F7-87915AA76DB2}  To determine where this object was allocated, set Microsoft.SharePoint.Administration.SPWebService.ContentService.CollectSPRequestAllocationCallStacks = true. 349b9ae9-7bda-41eb-921a-87974afb289c

    Leaving Monitored Scope (Request (POST:https://siteurl.domain.disapvm.com:443/_admin/createsite.aspx)). Execution Time=746.928171038498 349b9ae9-7bda-41eb-921a-87974afb289c

    =================== LOG END ===================

    Any ideas? 

    Thanks

    Wednesday, August 18, 2010 9:35 PM
  • Can you please confirm if you have impersonation enabled in the web.config for your central administration website and newly created web application ?

    Open up the web.config file in each of the applications and search for something like:

    <Identity Impersonate="true">

    If the above setting is set to false, make it true and try to create a site collection again. Hope this helps.

    • Proposed as answer by Serge Luca [MVP]MVP Thursday, August 19, 2010 6:25 AM
    • Unproposed as answer by naruwan Thursday, August 19, 2010 7:10 PM
    • Proposed as answer by Rahul Khera Thursday, February 24, 2011 7:25 AM
    Wednesday, August 18, 2010 11:11 PM
  • I have looked through all my web.config files. The new webapp did not have the <Identity Impersonate="true"/>. I added it but am still getting the same error. Are there any other ideas? Can someone explain to me the root cause of this error?

    Thanks

    Thursday, August 19, 2010 7:10 PM
  • Which site template did you use while trying to create the site collection ? Is this a custom template or an OOB template ?
    Friday, August 20, 2010 5:16 PM
  • This was an OOTB template... I was switching between Team and Blank templates
    Friday, August 20, 2010 8:33 PM
  • Can you try creating the site collection using PowerShell and see if the same error shows up ?

    New-SPSite –url http://siteurl:2010/ -OwnerAlias domain\guestuser1 -Name "Team Site” –Template STS#0

    • Marked as answer by Lily Wu Thursday, September 2, 2010 7:54 AM
    • Unmarked as answer by naruwan Thursday, September 2, 2010 4:12 PM
    Tuesday, August 24, 2010 4:41 PM
  • Forgive my new exposure to SharePoint, but when trying to run this command from PS C:\>, I get the following error.

    ================

    The term 'New-SPSite' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the

    spelling of the name, or if a path was included, verify that the path is correct and try again.

    At line:1 char:11

    + New-SPSite <<<<  -url http://siteurl:2010/ -OwnerAlias domain\guestuser1 -Name "Team Site" -Template STS#0

        + CategoryInfo          : ObjectNotFound: (New-SPSite:String) [], CommandNotFoundException

        + FullyQualifiedErrorId : CommandNotFoundException

    ================

    I don't know how to call PowerShell commands. Is a specific path I need to set first? 

    Thanks.

    Thursday, September 2, 2010 4:19 PM
  • Before calling the method you will need to load the SharePoint Powershell snapin, which can done using the below command:

    Add-PSSnapin Microsoft.SharePoint.Powershell

    It should look like:

    PS C:\> Add-PSSnapin Microsoft.SharePoint.Powershell
    PS C:\> New-SPSite -url http://siteurl:2010/ -OwnerAlias domain\guestuser1 -Name "Team Site" -Template STS#0

    Thursday, September 2, 2010 4:48 PM
  • Thanks for your help..

    I ran New-SPSite command after adding the snap-in, and received the following error-

    PS C:\> New-SPSite

    cmdlet New-SPSite at command pipeline position 1
    Supply values for the following parameters:
    Url: http://my.domain.com:4445/newtest
    OwnerAlias: guestuser1
    New-SPSite : Cannot find an SPWebApplication object that contains the following Name, Id, or Url: http://my.domain.com:4445/newtest.
    At line:1 char:11
    + New-SPSite <<<<
        + CategoryInfo          : InvalidData: (Microsoft.Share...SPCmdletNewSite:SPCmdletNewSite) [New-SPSite], SPCmdletP
       ipeBindException
        + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewSite

    Is this an error based on inputing a wrong value?

    The URL, "http://my.domain.com:4445", is the same as the SharePoint Administrative Console URL with a different port number.

    Thanks again.
    Wednesday, September 8, 2010 3:44 PM
  • If you execute the below command, do you see an entry for http://my.domain.com:4445 ?

    PS C:\Windows\system32> Get-SPWebApplication

    Friday, September 10, 2010 8:12 PM
  • Unfortunately, no. 

     

    I decided to re-install and , instead of using farm mode, used stand alone. This immediately resolved the webapp issue. There must have been an installation or configuration error, but so far I have no clue what to do otherwise.

    • Marked as answer by naruwan Tuesday, September 21, 2010 5:08 PM
    Tuesday, September 21, 2010 5:08 PM
  • Thanks a lot. This was helpful in my situation. I had set <Identity Impersonate="false"> earlier, because without setting that (false) I was unable to create a new web application.

    Thursday, February 24, 2011 7:29 AM
  • Hi Prashanth,

    First I tried to run this command:

    New-SPSite -Name Team -Url http://team.domain.local -Template sts#0 -OwnerAlias domain\sp_admin

    but I receive the following error "New-SPSite : Cannot find an SPWebApplication object that contains the following Name, ID, or Url: http://team.domain.local."

    Then I run your command and it works !

    Thank you.


    • Edited by RBogdan Monday, May 26, 2014 9:00 PM typo
    Monday, May 26, 2014 8:57 PM
  • Hi all, I know that this quite an old thread, but I encountered the same issue when trying to create a site collection. "Cannot complete this action. Please try again." 

    What I did to fix it was remove the Template switch, just leaving the command like so:

    New-SPSite –url http://siteurl:2010/ -OwnerAlias domain\guestuser1 -ContentDatabase "DB_Name"

    It worked - when I first opened the team site, it asked me to a select a site template, create some security groups and we're off and racing.

    Tuesday, October 30, 2018 4:21 AM