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


Top 5 Contributors of the Month
sivanagamahesh
Post New Web Links

Deploying custom 2007 site definition to 2010

Posted By:      Posted Date: September 03, 2010    Points: 0   Category :SharePoint
 
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


View Complete Post


More Related Resource Links

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 = GetRootS

Reg: Does Custom site definition created in SharePoint 2007 works in Sharepoint 2010

  

All,

If one has created a custom site definition in sharepoint 2007, Once the whole site is migrated to sharePoint 2010 will that "custom site definition" created in 2007 will work without breaking in SharePoint 2010?

If No, what has to be done to make it work on 2010.

Thanks,

Srini

 

 

 


How to upgrade MOSS 2007 custom site definitions to SharePoint 2010?

  
I would like to know how to upgrade custom site definitions of MOSS 2007 to SharePoint 2010 in detail?

Site Definition Import 2007 - 2010 - navbarlink problem

  

Hi,

I have a problem to import a site definition from 2007 to 2010.

In this site definition i have navbar and navbarlink.

In 2007 i could use Resources in navbarlink Url like this :

<NavBar Name="$Resources:CFS,RootSiteDef_Nav_Request;" Url="$Resources:core,lists_Folder;/$Resources:CFS,RootSiteDef_Nav_Request;/" ID="1005">
   <NavBarLink Name="$Resources:CFS,RootSiteDef_Nav_Request_ByStatus;" Url

After SharePoint 2007 upgrade to SharePoint 2010 issue with custom site(s)

  

With our 2007 site(s) we had a custom module (we developed) to swap out the application.master with our own master page which resembled the site default.master.  This worked great.

After the upgrade, out site's main pages looked fine however when navigating to the admin type pages (settings/viewlists etc.) pages the module stopped working.

1.) I have figured out something things with respect to what is going on but am still at a loss to how best resolve.  We want the layouts/admin pages to have the same master page as the main user pages.   I have read in 2010 this is now possible.  How can I achieve this?

 

2.) Currently, when navigating to the sites/settings page the site is using template/layouts/layoutsv3.master as the master page.  The settings.aspx page has DynamicMasterPageFile="~masterurl/default.master" .  It was my understanding that when DynamicMasterPageFile was set to default.master it would use the master page from the site.  So, with that said I am confused why it is using layoutsv3.master

any help would be appreciated

-dave


dave

How to upgrade MOSS 2007 custom site definitions to SharePoint 2010?

  
I would like to know how to upgrade custom site definitions of MOSS 2007 to SharePoint 2010 in detail?

Migrating Custom Site Definition to SharePoint 2010: Do i need to make any changes to existing site

  

Hi,

I am migrating from SharePoint 2007 to Sharepoint 2010.

We hae 2 custom workflows to be migrated.I have deployed the respective wsp which were used in Sharepoint 2007 site.But it did not help and i got errors.

Do i need to change my site definiton or my wso before deploying the same to Sharepoint 2010

Regards

Ram kiran


Migrating Site Definition from SP 2007 to SP 2010

  


I am trying to migrate 2007 site definitoin into sharepoint 2010 and for that i am creating a new "site defintion" project in visual studio. my site definition has some listtemplates defined in the onet.xml which requires that the schema.xml and other artifacts be defined in a "lists" folder inside my site definition's lists folder.

Now, if i want to add lists folder, do i need to add the folder direcly by going to "add > new folder" or visual studio provides some item type for that? by itemtype i mean something similar to "site definition" type in visual studio.

Any pointers will be appreciated!


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

  
Hi,

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

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?

Shark


Deploying custom Web Parts on SharePoint 2007 production server

  
I would like to develop a custom SharePoint 2007 Web Part for a client. Currently I'm using Visual Studio to deploy my solution to a test environment (since it's a SharePoint Project I choose just Build -> Deploy from the menu). What are the appropriate steps to deploy it to the production server?

I'd like keep it simple and safe (i.e. use the principle of least privilege). Therefore (if possible) avoid using stsadm, achieve this through web interface, or avoid using administrative rights.

Also, can I specify the scope of my Web Part, i.e. choose on which Web Application or Site Collection will it be installed?

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

Cannot crawl sharepoint site and mysite after database attach upgrade form sharepoint 2007 to 2010.

  
After database attach upgrade site and mysite from sharepoint 2007 to 2010 , I have full crawl and get "The crawler could not communicate with the server. Check that the server is available and that the firewall access is configured correctly. If the repository was temporarily unavailable, an incremental crawl will fix this error. ( Error from SharePoint site: HttpStatusCode ServiceUnavailable The request failed with HTTP status 503: Service Unavailable. )" for mysite and get "Access is denied. Verify that either the Default Content Access Account has access to this repository, or add a crawl rule to crawl this repository. If the repository being crawled is a SharePoint repository, verify that the account you are using has "Full Read" permissions on the SharePoint Web Application being crawled." for sharepoint site. The content access account for search is "db_owner" of both of site and mysite. How do I solved this problem ?

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?

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

SharePoint 2010 - noticed a possible bug with regard to custom site templates.

  
Hi All, I'm wondering has anyone else noticed this behaviour in relation to custom site templates. I wanted to move an site A ( content included ) from site collection A to site collection B. I saved site A as a site template ( content included ) I uploaded the site template to site collection B's solution gallery. I created Site B on site collection B using this site template. unfortunately the top links to site A have been preserved causing major confusion to the users. i.e. the shared documents document library link and the tasks link both link to Site A! the links to documents within the document library on the other hand are to site B!? Is this a known issue ? Is this something that I should have expected to happen? look forward to hearing other folks experience with this functionality. thanks and regards, Counie  

Site Migration from MOSS 2007 to MOSS 2010

  
Presently our client have the MOSS 2007 Portal and they want to migrate those sites in to MOSS 2010. So, We need to show case something to that client. Please anyone have idea on the same, please let us know. It's very urgent.Thanks in advance..Regards,Pradeep Seella  
Categories: 
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