New answers tagged


SPSite siteCollection = properties.Feature.Parent as SPSite; if (siteCollection != null) { SPWeb topLevelSite = siteCollection.RootWeb; string webAppRelativePath = GetRelativePathToSite(topLevelSite); // Enumerate through each site and apply branding. foreach (SPWeb site in siteCollection....


I am getting exception on below line DesignPackage.Install(context, context.Site, info, fileRelativePath); Exception : An exception of type 'Microsoft.SharePoint.Client.ServerException' occurred in Microsoft.SharePoint.Client.Runtime.dll but was not handled in user code Additional information: Cannot find stub for type with id "{d21214d9-63f5-488b-a665-...


You should use the Office Developer tools outlined here: The visual webpart is found in the Office/SharePoint -> SharePoint Solutions category You then need to set the project to Sandboxed in the project properties

Top 50 recent answers are included