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

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

Error creating site template from wsp

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


I am installing myCustomSiteTemplate.wsp, on SP 2010 server, activating the solution , my customized template is listed under site templates.

however when I am creating a new site using that template , it is throwing error as

Thie site Template requires that the Feature {909ada82-494c-41a2-9c10-630f1588c9c2} be installed in the farm or site collection.

I checked on Sharepoint Power Sheel console, with the following command

get-spfeature 909ada82-494c-41a2-9c10-630f1588c9c2. it does not show any feature .

I have activated all Publishing feature on site collection.

please help

View Complete Post

More Related Resource Links

Duplicate field name error, creating new site from custom template

I've made a site that maps the site (with a table of contents) and i export it to another site collection. I'm able to install and activate the solution in the other site collection, however when i'm going to create a new site using the site i've installed as a template it pops an error saying "A duplicate field name Wiki_x0020_Page_x0020_CategoriesTaxHTField" was found." I have no clue what this means. Can anyone help me? Thanks in advance

Creating a Site Column that Looks up an External List causes error when saving site as a template.


I'm not sure what the best practice is here, but I'm having a major issue trying to save sites as templates and I think I narrowed it down as to what the issue is.

When I try to save a site as a template, it creates the solution package, but it doesn't activate it.  When I try to activate it manually, I get the following error:

Feature definition with Id e9431ed5-27b1-4c33-9eeb-81b4ace9d372 failed validation, file 'test1ListInstances\ElementsFields.xml', line 481, character 231: The 'SystemInstance' attribute is not allowed.

I opened up the solution package and looked at the ElementsFields.xml file.  I traced the line to this:

<Field Type="BusinessData" DisplayName="Acme People Name" Required="FALSE" EnforceUniqueValues="FALSE" Group="Custom Columns" ID="{55b3bbba-a7e3-4698-9946-648a6b726e9e}" SourceID="{026904fd-f2d0-4e57-a239-c6da838458fa}" StaticName="Acme_x0020_People_x0020_Name" Name="Acme_x0020_People_x0020_Name" SystemInstance="ACME" EntityNamespace="http://????????:28241" EntityName="People" BdcField="FullName" Profile="" HasActions="True" SecondaryFieldBdcNames="0" RelatedF

Error when creating a custom site template



In VS 2010, I created a new SP project to create a custom site template.

W/O modifying the content, except setting the output path of the webtemp file to another language, I have the following error when I try to create a site based on this template :


failed to instantiate file "default.master" from module "defaultmasterpage": source path "default.master" not found


I've taken a look at OOB site templates, and I don't see what is missing.

I'd appreciate any help.




FYI, here is the content of my onet.xml  file :




Error creating site template for publishing site



I am trying to create site template for publishing site in SharePoint 2010.

I have a publishing site and have created site template for the same using _layouts/savetmpl.aspx.

But when I tried to create site from that template in the same site collection it throws error, actually it creates the site but not able to set the home page as /pages/default.aspx. If I edit the url as http://<new site created>/pages/default.aspx the site is working fine.

The onet.aml for the site template is: 


<Project Title="AsTestPckSiteTemplate" Revision="0" UIVersion="4" SiteLogoUrl="" SiteLogoDescription="" xmlns="http://schemas.microsoft.com/sharepoint/">


<!--<NavBar Name="SharePoint Top Navbar" Url="/poc/infonet/Depts/AsTestNewSite" ID="1002" />-->

    <NavBar Name="SharePoint Top Navbar" ID="1002" />



<Configuration ID="2" Name="BLANKINTERNET" MasterUrl="_catalogs/masterpage/nightandday.master" ThemedCssFolderUrl="/poc/infonet/_catalogs/theme/Themed/6941FBA2">


<!--PublishingPrerequisites Feature-->

Error Creating Site Collection

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!

Error when creating site collection through programmatically?

hi all, When i am creating SharePoint Site collection through programmatically i am getting an error message. i am using below code...   using (SPSite site = new SPSite("http://servername:7853/")) {   using (SPWeb web = site.OpenWeb()) {   SPWebApplication oweb = web.Site.WebApplication; site.AllowUnsafeUpdates = true;   SPSiteCollection sitecol = oweb.Sites;   SPSite site1 = oweb.Sites.Add("sites/DemoSiteCol", "DemoSiteCol", "Welcome to the Client SiteCol",1033, "STS#0", "Domian\\user", "display name", "user@domian.com");//here i am getting the error message as "Object refernce not set to an instance of an Object". oweb.Update(); } Please tell me why i am getting the error message.... thanks in advance.....

which one is better site template or site collection template for creating site collection?

hi all, i want to create site collection by using custom template. So I created one site and i saved as a template and i want to use this site template to create site collection...can we use site template  or site collection template to create site collections? what is the difference between site template and site collection template? please advise me which one is better..... thanks in advance...

Projects Web Database Site Template immediate error

I decided to explore the Projects Web Database site template - clicked to create the site, and immediately, received an "an error has occurred." message on almost every tab of the site. What am I missing?  Am I supposed to configure something before I create this type of site?   I get this error in the event viewer: Log Name:      Application Source:        Microsoft-SharePoint Products-Access Services Date:          9/8/2010 10:03:43 PM Event ID:      3 Task Category: Data Layer     Access Services: An unexpected error occurred. Exception message: There is a compatibility range mismatch between the Web server and database "WSS_Content_PT", and connections to the data have been blocked to due to this incompatibility. This can happen when a content database has not been upgraded to be within the compatibility range of the Web server, or if the database has been upgraded to a higher level than the web server. The Web server and the database must be upgraded to the same version and build level to return to compatibility range.   Any help is appreciated!  Thanks!  

Receiving error when saving site as template: [InvalidOperationException: Error generating solution

I am getting the following error when saving a site as a template (just this specific site is having this issue - other sites in collection successfully save as template): [InvalidOperationException: Error generating solution files in temporary directory.] Microsoft.SharePoint.SPSolutionExporter.ExportWebAsSolution() +26053165 Microsoft.SharePoint.SPSolutionExporter.ExportWebToGallery(SPWeb web, String solutionFileName, String title, String description, ExportMode exportMode, Boolean includeContent, String workflowTemplateName, String destinationListUrl) +1778 Microsoft.SharePoint.SPSolutionExporter.ExportWebToGallery(SPWeb web, String solutionFileName, String title, String description, ExportMode exportMode, Boolean includeContent) +44 Microsoft.SharePoint.ApplicationPages.SaveAsTemplatePage.BtnSaveAsTemplate_Click(Object sender, EventArgs e) +331 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +115 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +140 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981 I'm thinking it may have something to do with permissions, but other sites can save as a template. Also, it does not specify

Server Error in Save Site as Template

When I try to save a site as a template, it fails with the following message if I check "include content":     Server Error in '/' Application. ...Any ideas how best to start diagnosing this? The error message recommends that I edit the application's web.config to show custom errors, but, there are 32 web.configs in the sharepoint 14 hive - not sure which one to edit.  The site in question contains one custom list with one custom plain-text column, and one nearly empty page with some text.

Creating a new site sharepoint 2010 under parent site with my custom template Programatically using

Hi, I have a parent website under which i want to create subsites on the fly using visual studio 2010. The subsites which i want to create have a common stuructre(in temrs of lists & custom). So i saved the template in sharepoint 2010,it becomes wsp and goes into soution gallery. Now how do i use this template say mytemplate.wsp,to create site in visual studio. i tried this using (SPSite site = new SPSite ("http://infml01132:5566/sites/VRND " ))             {                 using (SPWeb web = site.OpenWeb())                 {                                       SPWebTemplateCollection myTemplates = site.GetCustomWebTemplates(Convert .ToUInt32(web.Locale.LCID));                     //SPWebTemplateCollection temlates1 = site.GetCustomWebTemplates(1033);                     //SPWebTemplateCollectio

Error in creating Search Site


I am trying to create search site.If I try to create site using the 'Basic Search Center' its is creating a search site.But after creating the site if I try to search anything it is showing me the following error.


Internal server error exception:

Troubleshoot issues with Microsoft SharePoint Foundation.

Correlation ID: a1132c1b-2ecb-4f0e-afbb-f42422aaec33


And if I am trying to create site using 'Enterprise Search Center' or 'FAST Search Center' its is showing the following error and not possible to create the search site


An unexpected error has occured.

CorrealationID :{7abd617e-8438-4ce7-bb7b-12761b8b8f97}



here is the Log file:

09/20/2010 09:43:11.22     OWSTIMER.EXE (0x2A5C)                       0x2D14    SharePoint Server Search          Administration                    dl2i    Medium      Search application 'SharedServices - Search Ser

Saving site as an template, and, creating new site with the saved template.



What is the process to save site as an template and create new site collection using the saved template?



MySite creation fail - There has been an error creating the personal site. Contact your site adminis



I have a MOSS 2007 installation patched up to Cumulative Patch December, but are experiencing some issues with MySite.

When users access MySite, they recieve this errormessage in their browser: There has been an error creating the personal site. Contact your site administrator for more information.

This is followed up with this logged event on the server:


My Site creation failure for user 'DOMAIN\username' for site url 'https://mysite.domain.com/personal/domain_user'. The exception was: Microsoft.Office.Server.UserProfiles.PersonalSiteCreateException: A failure was encountered while attempting to create the site. ---> Microsoft.SharePoint.SPException: User cannot be found .
   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, String quotaTemplate, String sscRootWebUrl, Boolean useHostHeaderAsSiteName)
   at Microsoft.SharePoint.Administration.SPSiteCollection.Add(String siteUrl, String title, String description, UInt32 nLCID, String webTemplate, String ownerLogin, String ownerName, String ownerE

Creating a template from site causes loss of translations


Good day all,

I am using the MUI in Sharepoint 2010 to allow users to choose between English and French on our site. I created a very basic site (just to test my question) on which I created one custom list. I added some columns(bread, cheese, ham chicken), switched the language to french and manually changed the columns to their french equivalents (pain, fromage, jambon, poutlet). Changing the language back and forth causes the column titles to change also accordingly.

However, when I save the site as a template, either with or without the content, only the english versions of the columns are saved into the template. Have anyone run into this before? Any workarounds? I also tried creating the template while in the french version but it didn't make any differnce.

I read a bit about being able to do bulk translations and multilingual term sets, I will try these and post back if I get any results.

Creating a dynamic site using custom template programmatically.



I have sites like




I have created Project1 as Template (Save as Template) and this template is available at http://kashyap Site Gallery > Solutions

http://kashyap/Team has a list called projects. I want to do custom workflow which is run by user manually(It is not problem). I want to create site programmatically  based on the template. I did some code Its

 private void codeCreateSite_ExecuteCode(object sender, EventArgs e)
      SPWeb web = workflowProperties.Web;

      SPListItem lst = workflowProperties.Item;
      string title = lst["Project Title"].ToString();
      string url = Common.UrlString(title);
      string desc = "Project from " + Common.GetFormatedValue(Convert.ToString(lst["Customer"

Creating custom site template from a site that has a subsite - issue

  1. We created a Report Center site (a subsite) inside our site and then saved the site as a custom site template (including content). When we create the site out of this template, the site does not include the Report Center subsite. Can someone explain why?
  2. The report center was created for Key Performance Indicators (KPI) and we had published those KPIs on the parent site. We were hoping the any site created with our custom site template would show the KPIs. But we see only the KPI web part on the new site (created from our custom site template) without any KPI data. The reason is obvious because the data was coming from the Report Center subsite that does not get created by our custom site template. How do we accomplish this task via a custom site template?

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