.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

How to redeploy custom site defination ?

Posted By:      Posted Date: April 14, 2011    Points: 0   Category :C#

Hi All,

I have create custom site defination project in VS2010 for sharepoint foundation. Project contains some custom list which is created programetically when site is created.I deploied project wsp on client machine. After some time I have done some same changes in list scema. I again want to deploy this wsp on client machine without any data loss in custom list. How to do that.

Please help me this is argent.

Thanks in Advance

View Complete Post

More Related Resource Links

How to create root site collection using custom site defination ?


Hi All,

I have created custom site defination using vs2010. I want to create root site collection from central admin using my custom site defination on Sharepoint Foundation 2010. I also want to create some sub sites. I am not finding proper event where I write code to create sub sites.

This is argent. Please help me.

Thanks in Advance.  

How to add custom list entries to mysite's calendar in Sharepoint 2007 site?


I would like to know below things

(1) How to create MySite for one specific member with other or administrator's access?

(2) Scenario : Administrator have created one SP2007 site. now Administrator have created one calendar (Sample calendar). Administrator have added some entries in calendar. now one user entered in portal site ansd view the calendar and he click on MySite menu. so this sample calendar entries should enter in that user's mysite calendar. How this can be achieved?

Thanks in advance.
Regards, Praful Udade

Apply custom.master to "Site Settings" page?


I'm using a custom.master page, which is applied to almost all pages available to READ users.

However, I'd like to apply it to the Search, Site Settings, and View All Site Content pages.

I'm not sure where this would be applied.

Guidance much appreciated. Thanks!

Sharepoint 2007 - Wiki site - New Pages Not Inheriting Custom Master Page


I am working on a SP site (MOSS not WSS) which is heavily customised away from the OOTB layout. I need to create a Wiki site, which was going well - I've created a master page which displays the miniconsole (this was not visible with our customised layout), and made it the default master page for the site. This has been applied to the two standard pages that come with the Wiki site, however when a new page is created, it seems to inherit the default.master, rather than my custom master page - thus not showing the miniconsole.

When I have created a new page, I am able to use SharePoint Designer to attach my custom master page to it, which works perfectly, however this will not be a viable option going forward as end-users create their new wiki pages.

How can I get the new pages to inherit my master page when they are created?


Adding a custom ASP page to a sharepoint 3.0 site


I have a custom ASP page that I need to add to my sharepoint 3.0 web site.  I created a virtual directory under my website and placed the ASP file.  When I link to the ASP file, I get a 404 page not found.  To make sure I had the correct URL path, I created a test html file and placed in the same virtual directory and linked to it just fine.  I think it has something to do with managed paths and sharepoint trying to control this new ASP content.  I cannot figure out how to exclude this content from managed paths.

Any suggestions on how to resolve this issue so I can run this custom ASP file under sharepoint 3.0?


Custom Site Column in MOSS 2007

Hello, We have a request to add List in a List, for example, one of the column in the list should contain a table...so, created a custom column "Column with HTML Table" from the list of publishing fields...but, somehow, I dont seem to find that site column any more... That column type is "Publishing HTML", and it allows to define HTML table. I am unable to add a screenshot here...so, any clues? Also, can we copy the custom site column as a template and move it to another Site Collection? Regards, Kishore.  Kishore

remove web part from custom site defintion

Hi,    I need to remove a web part from a custom site defintion. The links web part needs to be removed from the site defintion.  I have recreated the site definition from sts . I found this good article (http://blogs.msdn.com/b/sharepoint/archive/2007/03/22/customizing-moss-2007-my-sites-within-the-enterprise.aspx). but a bit lost as i can't find the wp.gettype method the author is using. I am open to suggestion or  is there  a way to remove the web parts by creating a user control which would remove the web parts.  

Custom Theme for entire Site Collection

I created a theme with custom css for sharepoint 2010 Is it possible for me to use my custom CSS and have it be a selectable theme from each site without me having to modify the master pages of each site that wants to use the theme?

Creating a new root Site Collection using a custom site definition file (ONET.XML)

Using Powershell, I am trying to deploy the our custom solution to SP 2010.  The script is doing the following: Deleting the web application using Remove-SPWebApplication Creating a new web application using New-SPWebApplication Adding and deploying a series of WSP files (one of which has the site definition file in it) using Add-SPSolution and Install-SPSolution Create a root site collection based on the site definition file provided in the WSPs using New-SPSite I get the error "WARNING: Template is not found and is not applied." When I run Get-SPWebTemplate, my site definition does not show up. I saw this: http://social.msdn.microsoft.com/Forums/en/sharepoint2010general/thread/5ea46e07-a4b0-4bab-b698-9b6eeb695607 but I want a solution that does not involve me reloading a DLL, as, I feel there is something else I am forgetting. I have also tried: IISReset Resetting the timer service Cleaning the Cache (as described here: http://support.microsoft.com/kb/939308) Nothing seems to work.  Does anyone have any ideas?

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?

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  

Help with creating graphs in a site page from figurative data in custom list

Guys Can anyone provide me with someone help please? I need to be able show a graphs/line format in a web part of a site page on my SP 2010 site. I want to use some changing figurative data that is contained within a custom list change a the line/pie chart graph on the fly that is located within a chart/line graph in a site page. Basically when the data in the custom list gets changed by my resources I want to be able to see the changes in the graph almost like a live dashboard. I would be very greatful for some help. Note: I am not a coder nore do I ever claim to be, but if I could get a step by step guide on how to achieve this then I would be very greatful. I have a good understanding of SP but I am not to the coder. I able to supply the list if necessary and if someone could provide me with the code/or if code is not necessary for this task then please can you advise how? Many Thanks Mike Gowlett PMP P2P (MCSE, MSP, Old School :-) 

how to create site collection by using custom template through programmatically?

hi all, how we can create site collection by using custom template through programmatically? please give me some suggestions. where we need to save this custom template... thanks in advance..

Custom Site navigation using StaticSiteMapProvider

Hi. I have created a custom sitemap provider component by inheriting from StaticSiteMapProvider. As per my requirement, I have a custom list at the Root Site that stores the navigation information. In my custom provider, I implemented BuildSiteMap() in such a way that it uses my custom list to create SiteMapModes. I just followed the technique mentioned http://msdn.microsoft.com/en-us/library/system.web.staticsitemapprovider.aspx Now the issue is, I want to recreate the site map each time an item is added to my custom list (where I store navigation information). I don't want BuildSiteMap() method to be executed completely every time a page request arrives because it uses SharePoint object model to access the list data and this will affect the performance. As mentioned in the article, within BuildSitemap() method, I am checking whether site map is created already and if yes I am skipping the call to SharPoint list items. But with that approach, it looks like the site map is created with first request to the site and for all other requests, it is being served from the cache (or persistant storage). Right now I have to use IISRESET to get my site map recreated after adding an item to the List. I have following questions regarding the StaticSiteMapProvider Once created, where is the site map stored? How I can reset or clear already created site

how to add custom site collection template in central admin site in SharePoint2010?

hi all, how can we add custom template in cendtral admin in sharepoint 2010? In 2007, we can add by using the stsadm tool addtemplate operation....but 2010 tremplate is saved as a solution file not a .stp file...so how we can add this template in central admin site in SharePoint 2010? Please give me some suggestions...... thanks in advance.....

Deploying custom 2007 site definition to 2010

For a customer I am upgrading their SharePoint 2007 enviroment to SharePoint 2010. After a succesfull upgrade I am stuck with one last annoying problem: when creating a publishing site collection using a custom definition the provisioning of the site definition  fails. Interesting about this is that the provisioning works from the central admin UI, but this customer has an custom webpart for creating site collections in a web application outside of Central administration. The simplified code for this is: public static bool Create(SPWebApplication webApp, string Url, string siteTitle, string siteDescription, uint lcid, string siteTemplate, string ownerLogin, string ownerName, string ownerEmail)         { SPSite site = null; try { SPSite newSiteCollection = webApp.Sites.Add(Url, siteTitle, siteDescription, lcid, siteTemplate, ownerLogin, ownerName, ownerEmail); newSiteCollection.Close(); newSiteCollection.Dispose(); site = GetRootSite(webApp); bool r = (site != null) ? true : false; return r; } catch { return false; } finally { if (site != null) site.Dispose(); }         } The exception is thrown when webApp.Sites.Add() is executed. The user we are logged in as, as wel the appID, are Farm Admin's. The ULS shows this exception: Exception thrown while fetching field by internal name 'Wiki_x0020_Page_x0020

Adding a custom control to the SharePoint 2010 Team Site Wiki Page Template ( wkpstd.aspx ) programm

Topic This is maybe my last post about the Team Site Wiki Page customization with the aim of exceeding its limitations. This time we are going to customize the unique template ( wkpstd.aspx) by replacing the control that renders the editable content by a custom one. In this post example, we will take advantage of the use of this custom control to render not editable additional contents, for instance, a header and a footer that could be the same for a specific Wiki Page Library. Of course, we are not going to really customize the template, but we are going to use a delegate control to replace the control at runtime. Here are the screen shots of the result: We can see a non editable Header and Footer on the Team Site Wiki Page In edit mode these additional contents are not rendered, but we can add new content as usual And of course, after having saved the page, the new content is rendered wtih the non editable Header and Footer. Steps required   If you look at the Team Site Wiki Page template, wkpstd.aspx, you can see the control that is rendering the editable content/ <SharePoint:EmbeddedFormField ID="WikiField" FieldName="WikiField" ControlMode="Display" runat="server" /> We are first going to create a custom EmbeddedFormField control Then, we are going to use a delegate control to replace the native EmbeddedFor
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