New answers tagged

0

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....


0

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-...


1

You should use the Office Developer tools outlined here: https://www.visualstudio.com/en-us/features/office-tools-vs.aspx 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