Tag Info

New answers tagged

0

Got the solution Open the file "wss.xsd" at below path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML" Find all xs:anyAttribute namespace="##other" processContents="lax" in the file and verify that it is the last child if not move it to the last position . see below piece of code. <xs:attribute name="PrependId" ...


0

In Visual Studio 2010 the Import SharePoint Solution Package project allows you to import a WSP, and create a SharePoint 2010 solution project. Here some links may help you: Upgrading SharePoint 2007 Projects to SharePoint 2010 Updating a SharePoint 2007 WSP in Visual Studio 2010


0

Try this code snippet. public override void FeatureActivated(SPFeatureReceiverProperties properties) { SPWeb web = properties.Feature.Parent as SPWeb; PublishingWeb publishingWeb = PublishingWeb.GetPublishingWeb(web); string pageName = "MyCustomPage.aspx"; PageLayout[] pageLayouts = publishingWeb.GetAvailablePageLayouts(); PageLayout ...



Top 50 recent answers are included