.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

When trying to create a site i get - 'Failed to create the 'Pages' library. Please Help...

Posted By:      Posted Date: October 20, 2010    Points: 0   Category :SharePoint


I get an error in SharePoint 2010 when trying to create a new site in my site collection root. I beleave I have set up everything correctly security-wise, but maybe I missed something. I am set as site collection owner.

Any thoughts or ideas appreciated! Thank you in advance /Jesper Wilfing

EventLogger tells me:


Event log message was: 'Failed to create the 'Pages' library.'. Exception was: 'Microsoft.SharePoint.SPException: User cannot be found.

at Microsoft.SharePoint.SPUserCollection.get_Item(String loginName)

at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.LoadWorkflowBytesElevated(SPFile file, Int32 fileVer, Int32& userid, DateTime& lastModified)

at Microsoft.SharePoint.Workflow.SPWorkflowManager.AddDeclSiteTemplates(SPWeb web, String visibility, SPWorkflowTemplateCollection wftemplates, SPListTemplateType templateType)

at Microsoft.SharePoint.Workflow.SPWorkflowManager.<>c__DisplayClass2.<RegisterNoCodeTemplates>b__0()

at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()

at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)

at Microsoft.SharePoin

View Complete Post

More Related Resource Links

Unable to create columns in document library after applying custom master page to site

Hi, I have applied a custom master page to a site.There is a document library in it. I am unable to add columns in it or change the default view.Nothing happens when I click on OK butoon after making my changes. However the columns are created/default view is changed when I apply the default master page. Guess I am missing some TagPrefix or sharepoint control on master page.I had solved this problem earlier in this way but don't remeber it now. Can anyone help?

Provisioning did not succeed. Details: Failed to create the 'Reusable Content' library. OriginalEx

Hi there, I am trying to activate the Feature SharePoint Server Publishing Infrastructure in a Team Site, but I am getting the following message: Provisioning did not succeed. Details: Failed to create the 'Reusable Content' library. OriginalException: Column 'ShowInRibbon' does not exist. It may have been deleted by another user. This environment is running SharePoint 2010 Server, as a result of an upgrade of MOSS 2007 by moving the Content Database. The visual upgrade was applied partially in this Site Collection, not for all the Web Sites. Interestingly for new SharePoint 2010 Site Collections the activation works fine! But not for this specific Site Collection. Any clues? Cheers,Marcel Medina - SharePoint Developer Blog: http://sharepoint4developers.spaces.live.com Blog: http://sharepoint4developersnz.spaces.live.com Blog: http://www.canalsharepoint.com.br/marcelmedina

How to set create-only permissions to publishing pages library?

I have publishing site where users can add their own pages to some libraries. I have problem with permissions when user creates new page. Here's how I set permissions: all users are added to members group (by default they can view pages) members group has view permissions also for master pages library For site where users can add pages I set the following permissions on pages library users can add view pages users can add pages When user adds new page then he/she gets automatically edit permissions for this page. So users can edit only their own pages. I found out that add permission is not enough - when user creates page then he/she gets access denied error. The minun that doesn't cause problems is approver permission to pages library (of course, now users can do everything on pages library they ever want to do). Is there any way to avoid making users as approvers?  They only need view and add permissions for page library and view and edit permissions for pages they added. They cannot do anything more. Approving and denying of pages is administrators job. With best regards, Gunnar Peipman   Also visit my ASP.NET and SharePoint blog!

Lost the possibility to create new pages and libraries in a sub site



(I'm working with the french version of SharePoint 2010 Fundation so the English terms might not be exact)

I've create a primary site with a couple sub-sites.  I have the right : "Total Owner" on every site.  Unfortunatly, in one of them, I lost the ability to create new pages and librairies in the "Site Action" menu.  I still have access to create it under the other sub site.  What kind of privilege do I need to look at to get these rights again ?  Where do I need to look ?

Thanks !

Patric Côté

Create Web Site vs Web Application


I follow the tutorial and creted a web site for my company sales system. One of my collegue mention we use the wrong templet, we should use Web application for company application.

Should i continue using web site or change to web application? We are creating application for company sales, inventory, hr ,etc where possible more than 1000++ user. And during month end, it will be high traffic and transaction. can Web Site Template with BLL and DAL handle it? or i just need a powerful server?

Failed to create AppDomain


Recently updated my system to use Visual Studio 2010, and projects will no longer compile. All of them give the error "Failed to create AppDomain." Intellisense does not work either (except for standard HTML tags), and individual pages will also not compile.

Points of note:

  • All sites are hosted on UNC shares (although it doesn't work on a new site created on local drive either)
  • Language is mostly C#
  • No explicit code is creating AppDomain objects
  • Sites compiled fine under both VS 2005 and 2008 both before and after VS 2010 installation
  • Sites compile and run fine from the IIS server on the remote machines (one IIS 6, one IIS 7)

Things I've tried (some obviously shouldn't have any bearing on it, but I've tried just about everything that anyone suggested on any forum I could find, most of which seemed to apply to IIS, not VS):

  • renaming/deleting security.config
  • running caspol -reset
  • re-registering asp.net: aspnet_regiis.exe -ua / aspnet_regiis.exe -i
  • removing VS 2005, 2008, 2010, and then re-installing just VS 2010
  • adding the UNC path to the local intranet zone (internet options control panel)
  • adding the UNC path to LocalIntranet_Zone in the ASP.Net 2.0 control panel (runtime security policy/machine/al

Create web site specific to mobile device, how to detect?



I have a website that is written in .Net 2.0 which uses all the nice rich functionality of the web (Ajax, javascript etc..).  However I have noticed that the site does not display very well on mobile devices. 

So therefore I would like to create a more streamlined version of my site that is better tailored to these devices.  However how do detect that the user has come to the site via a mobile device and how can i redirect them to my tailored page

Many thanks in advance

Create My Site for FBA Users Error


Hi Guys,

I am trying to create mysite for FBA Users programatically (FYIP: I have done all the configurations for FBA in SSP and mysite host and I am able to create mysite from UI for FBA Users). The problem exists only when I am creating MySite programatically!!!










Could not able to create the Report Center Site in MOSS2007.

Hi All,

I am facing an issue while creating the Report Center site.Once i provide all the details in the New Sharepoint Screen of Central Admin toll and hit on Create button,after some time its throwing an error saying "File Not Found".  Activated the Office Sharepoint Server Publishing Infrastructure Feature and Office Sharepoint Server Publishing Feature but could not see any difference.

Can some one please help me out how to sort out this issue?

Thanks in Advance.

Regards, Krishna Chaitanya

How to create a single entry page for site collections in MOSS 2007



I have  7 site collections containing a few hundred team collaboration sites. Some users are internal (intranet) but most are external (extranet). Extranet users are experiencing problems with losing links to their sites and forgetting which URLs to use. So I would like to create a single entry page that all users can enter after the logon process, which shows a list of sites they have permission to access, and other user-specific information. Perhaps relevant documents, tasks, recently modified documents etc.

I know this sounds like a 'My Site' but we want to use use a general welcome page instead. We use Windows authentication.
What is the best way of doing this and is it something that can be done in SharePoing Designer or does it need to be done in Visual Studio?

Many thanks in advance.

How to create Webpart pages dynamically ?


Hello friends,

I need to programatically  create a webpart page on my sharepoint sit on the activation of a feature and after creation of that page, i need to add a webpart. How i will do that? Is it possible create a Webpart page dynamically?


How to develop a Create Site Wizard


When you create a new site in a SharePoint site collection, you get the first screen where you enter the site name, description, choose a site template etc. How can I develop a similar screen where I give users ore options to enter other information such as entering the name of default documents library, default list etc.?

I have created a custom site template that contains a document library with some preloaded documents, a task list with predefined tasks etc. My manager has asked me to develop a wizard like page that allows a user to create a site by selecting this custom template and entering a document library and task list name of their choice. There are some business reasons/logics behind all this, but I am just presenting a simpler version here to get me going.

I would greatly appreciate any advice, code sample, references, etc.


Proxy failed to create remote object on the server

Hi, I am using .net remoting for inter-process communication between two processes on the same machine 1.   The first process is one of the Office application: Ecxel /   Word /   PP 2.   The other process is another application that interacts with one of the above. For that it needs office application object. For example: Excel The solution is comprised with 3 projects: Project #1: The remote object is a simple Called RemoteOfficeApplication – that simply wraps the required application object (Word / Excel / PP).   Project #2: The Server is a simple Office add-in, written with a Visual Studio Extensibility -> Shared project. This add-in is instantiated whenever Excel is lunched. This project reference project #1. Code: var channel = new TcpChannel (5003); ChannelServices.RegisterChannel(channel,true ); RemotingConfiguration.RegisterWellKnownServiceType( typeof (RemoteOfficeApplication.RemoteOfficeApplication ), “AppObj”, WellKnownObjectMode .Singleton);   Project #3: The Client is the process that requires the application object. This project also reference project #1. Code:   //Get Remote object proxy object remoteAppObject = Activator.GetObject(typeof(RemoteOfficeApplication.RemoteOfficeApplication), “tcp://localhost:5003/AppObj" ); //Cast the proxy var r

Not able to create a new site from a previous backup

Hi,   I want to create a new site from a backup. I did the restore process in Central Admin. I gave new appplication URLand new content database name in the last page of restore process. I  tried restore several times  but always the following error msg is showing in backup and restore status.   Error Status TEST 600 6/30/2008 11:22 AM Object TEST 600 (previous name: TEST PORTAL) failed in event OnRestore. For more information, see the error log located in the backup directory. SPUpdatedConcurrencyException: An update conflict has occurred, and you must re-try this action. The object SPWebApplication Name=TEST 600 Parent=SPWebService is being updated by WSS\Administrator, in the OWSTIMER process, on machine WSS. View the tracing log for more information about the conflict. WSS_Content_TEST_PORTAL_600 Completing restore 6/30/2008 11:29 AM Object WSS_Content_TEST_PORTAL_600 (previous name: WSS_Content_TEST_PORTAL) failed in event OnPostRestore. For more information, see the error log located in the backup directory. SPException: Cannot attach database to Web application. Use the command line tool or Central Administration pages to attach the database manually to the proper Web Application.   I am also showing the log file details below. Log File Details   [06/30/2008 11:19:44 AM]: Verbose: Using directory: \\wss\TEST\Backup\spbr0003\.[06/30/2008 11:19:44 AM]: Ve

Create URL for SharePoint site

Hi   I am new to sharepoint and have created a site wich is accessable by http://servername:port_number.  How do now make that accessable by giving it an internet facing URL e.g. http://sharepoint.mydomain.com.   Any advice would be greatly appreciated

cannot create a site collection

hi all, When I was creating a site collection in a new created web application, after clicking 'OK', it skipped to a page with error information which is: Error The URL 'Reporting Templates/audit.xlsx' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.   Troubleshoot issues with Microsoft SharePoint Foundation. Correlation ID: 55bd00e8-3ecd-41bc-b534-e59fbebfc2b7 Date and Time: 8/31/2010 3:20:38 PM I never met this before, what's wrong with my farm?

SPD workflow status show "starting" when I create a document from the library !!. and hangs

I have a document library in MOSS 2007. Have created a WF and that starts "autmatically when new item created" In the document library I have created couple of column those are mandatory (required columns) and user has to fill those column while uploading a document as well creating a document from library. WF has ran and completed succefully  when I use "upload" option to load a document.  As you are aware, when we "upload" a document, we will have to fill all "required columns" and the click "check in" command button.  After I do all this, document get loaded and WD ran succesfully. However, the WF is not running when I create a document (.docx) from this library (using "new" button) !!.  I have filled all required field in the document information panel . After save & exit from WORD application, I can see WF status as "starting". But, it never started and completed.  So I did following and found WF worked !! a) After creating document (.docx) using "new" option I found WF status "starting"!. So,  I did "Check-out and Check-in" manually from document library. After doing this,  WF ran and status has been changed as "completed" b) In SPD, I change workflow start option from "Automatic" to "Manually start".&nb
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend