.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

How to Save a site template to farm and deploy it to new site

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

Hi all,

When I create a new site and plan to save it as template to create multiple new sites.

Different from MOSS 2007, I cannot find the Save Site as Template option under System Settings. What I did is to type savetmpl.aspx website and save the template.

After that, I tried to use stsadm.exe -o addtemplate command to add the template to farm, but I got another error again!

Cannot find or parse web template file c:\Templates\template.wsp.

I googled a lot websites but only found one related solution to to use stsadm.exe -o addsolution command. But after trying that, I still cannot  see the template when I create new site collection via Sharepoint Central Administration.

Can anyone please help me and let me know how to fix the issue?




View Complete Post

More Related Resource Links

Create Custom Site Template & Deploy as Farm Solution


So I've seen a few posts and blogs about this, but nothing with the specific error I'm getting.  All I'm trying to do is create a custom site template from an existing site (now WSP), and make that custom template available in CA so I can create host-named site collections from that template in PowerShell.  Apparenly this was a lot easier in 2007, as you could just save your template as STP, and run some stsadm addsolution to get it in the farm.  With 2010, I've read there are 2 options:

  1. Install-SPWebTemplate
  2. Deploy via Visual Studio 2010

I've tried running Install-SPWebTemplate (which only takes CAB files), and NOTHING I do works.  I've created a cab from the WSP with makecab, I've renamed the WSP to CAB, and all I get is "cannot find or parse web template file".  So on to VS2010.

Using this article as a guide (http://msdn.microsoft.com/en-us/library/ff408263.aspx), I created a new 2010 Import existing solution project, left all items selected, and the import was successful.  I made a change or two to the ONET.xml to fix some things, and then I just try to deploy it to the farm.  Whether I set the URL to the root intranet site, or the CA URL, I get deployment conflict errors:

"The URL or

Save as Site Template issue with Enable Labels Policy

I am having issues saving a site as a template. I have a basic team site. The only thing i have done is set 'Enable Labels' on the Shared Document library, the label format being {version} I then try to save site as a template and get the error... Error Error exporting the list named "Shared Documents" at the URL: Shared Documents Any ideas? I have replicated this issue on a new build of SharePoint 2010 in a test environment.

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.

How to save site template with subsites..?



I am trying to save site as template., and found that subsites are not part of that site template..

Can anybody tell me how can I save site as template with subsites.?...



Unable to save site as a template


When creating a site template from site actions --> site settings --> save site as template i get the below error


I narrowed the problem down to a list attribute The 'NoCrawl' attribute is not allowed. The wsp is created in the solution store but cannot be used to deploy a site, when it is used i get the same error The 'NoCrawl' attribute is not allowed.


The site that i am saving as a template is a freshly created team site with no custom features, lists, libraries, addons of any sort. Therefore it cannot be a list or library that i have created so I thought it might be a custom webpart that is enabled on the site collection, i went and uninstalled and removed all custom webparts from the site collection but still get the same error.

When I create a fresh web application, the save site as a template operation completes successfully.

Can anyone advise where i might start to narrow this problem down?

Thanks in advance.




09/22/2010 08:41:33.94     w3wp.exe (0x0F5C)                           0x08BC    SharePoint Foundation     

Deploy Site from Template

I have a template site that I have created with Sharepoint designer. I have created a template that is available in the solutions gallery and try to create a site from the template and the system errors out. I would like to upload my template to you test. Error message has an id in it which I can get if I need to. The error states that an error has occurred I click ok and go back to the create a site page.

SharePoint 2010 team site "Save site as template " not available



I have a newly created site based "Team Site" template. Now I want to export this as a site template and use it as base in my Visual Studio 2010. Now I am not able to see the command "Save site as template " in site settings of that team site. What I am missing here ?

But I get same "Save site as template " when I create a site based on "Blank Site" template.


save as list template and save as site template problem



Please provide me information for how  to fix this problem.

When to occur this problem in share point.

When  i create save as list template and save as site templates its showing the following error below:
Unknown compression type in a cabinet folder   at Microsoft.SharePoint.Library.SPRequestInternalClass.SaveWebAsTemplate(String bstrUrl, String bstrTemplateName, String bstrTemplateTitle, String bstrDescription, Boolean bSaveData)
   at Microsoft.SharePoint.Library.SPRequest.SaveWebAsTemplate(String bstrUrl, String bstrTemplateName, String bstrTemplateTitle, String bstrDescription, Boolean bSaveData)


workflows when saving site as template with content

I have have a MOSS 2007 site on a production server with custom workflows.  I saved the site as a template with content and used the template to create a sibling site.  I am testing it and the workflows aren't working.  Is this to be expected? I have read that workflow don't work when saving between development and production, but I can't find anything that addresses both sites being on production. Will I need to recreate the custom workflows by hand? 

Is there a way to update the template of a site?


I am looking for a best practice for managing and applying site design changes.

For instance, in another platform, I could release a site for testing or production use, so content would be added.  At some later date, a change* to the design would be needed and I would take a copy of the design only, make the change and then apply the updated design to the existing site. Content would be maintained but the new design changes would be applied. 

      *A change might mean creating new functionality on an existing element, adding new elements or changing an existing element.

How best should this be done in WSS?

Thank you in advance!

deploy web-site with different version on IIS

Hi,I have source-version of project and i need to deploy it on IIS. General project it properly deploy using VS2008, but issue is, if new revisionis created then i need to point new source to deploy web-site. In this case i need to remove created virtual dir for previous version.Is this possible to toggle virtual directory between two sources.I think one solution is to change virtual directory path to new one. Any other solution.Thanks,Nik

Navigation settings not applied when site created from template?

Hi, I created a customized site on MOSS and disabled Quick Launch and enabled Tree View on it. But when I create new site from this template it has Quick Launch enabled and Tree View disabled. I downloaded the STP file and looked inside and in the details <Details> ... <EnableTreeView>1</EnableTreeView> <EnableQuickLaunch>0</EnableQuickLaunch> ... </Details> Does anyone have a clue why it does not work correctly? Does this work for you correctly?  

How to deploy dashboards made in dashboard designer to diferent site collections?

Hi I just migrated from sharepoint 2007 to 2010. We used to have performance point dashboards spread across libraries in subsites all across our primary site collection "Http://server:x" after I migrated I understand that I must migrate all performance point content to a new site or site collection made with the business intellingence template. I created a new site collection with this template (Http://server:x/sites/pps) and succesfully migrated all performance point content. Now I want to redeploy all the dashboards to their respective subsites in the  "Http://server:x" site collection so that everything looks exactly as it did when we where using SharePoint 2007. But when I try to deploy to a site I only get the option to deploy it to the ("Http://server:x/sites/pps") site collection and its respective libraries. I wish to manage all dashboard content centralized in (Http://server:x/sites/pps) but I want to deploy dashboards to libraries across  "Http://server:x" is this posible or how is Performance Point services supossed to work?   I also having trouble with DashBoard designer. I have everthing running on a Virtual Machine test enviroment. With windows server 2008 r2, 4 gb ram. Everything installed in one machine. And Suddently DashBoard Designer Crashes In the event log I get the error Dashboa

Publishing site template saved using /_layouts/savetmpl.aspx

A trick we used in MOSS 2007 doesn't seem to work in SharePoint 2010 although it seemed to work for someone who asked the same question in this forum.  We know publishing site do not have the "Save as site template" as an option in the site settings so we used <site>/_layouts/savetmpl.aspx to save the site template.  Unfortunately, new site created using the saved template is throwing a 404 error.  And the site was actually created (can see in View All Site Content).  We need to be able to easily create sub-sites with the same look and feel and set of document libraries/lists.  Any advice? 

FileNotFound exception trying to open a site - Farm.local is Null - x64

  Hello I've created a simple asp.net application to open a site and display the title of the corresponding web. But i'm getting FileNotFoundException while trying to open the site. The same code works perfectly when i run it in a console app. My spec Windows Server 2008 R2 x64 SharePoint 2007 x64 Visual Studio 2005 My target for the asp.net app is set to 'Any CPU'. As far as permissions is considered i've checked that the current identity using which VS2005 hosts the asp.net app has full rights. In fact i've used the same identity for app pools in IIS. As an asp.net web application As a console application Any ideas? Regards NLV Visit SharePoint User group - India

Can I deploy a custom site page from the VS2010 SharePoint project?

Hi We're setting up some demos of our sharepoint plugins and want to easily deploy these into sharepoint so that all members of the company can easily get the demos running on their own machines. This is fine for layouts, web parts and so on - but the demo also has a customised sharepoint home page (which I edited in SP Designer) - how do I make this edited home page part of the VS2010 project so that it can be deployed easily to any site collection?   Thanks  

Target a Specific Site/Web using Deploy in VS 2010 IDE

If using a SharePoint Project's context menu option of "Deploy", is there a way to specify a target (given the scope of the Feature, etc.)? Thanks.
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