Microsoft.SharePoint.SPException: The security validation for this page is invalid. in SharePoint 2010

If you write the following code in a asmx web service to create site in SharePoint 2010 1: SPSite site = null; 2: SPSecurity.RunWithElevatedPrivileges(() => 3: { 4: SPSiteSubscription subscription = SPSiteSubscription.Create(); 5: site = webApp.Sites.Add(subscription, siteUrl, title, description, lcid, webTemplate, ownerLogin, ownerName, ownerEmail, null, null, null, useHostHeaderAsSiteName); // exception 6: site.AdministrationSiteType = SPAdministrationSiteType.TenantAdministration; 7:…

2

Make your custom theme a default theme for present site and it’s sub-sites.

Following images show the OOB site themes :- Suppose if would like to apply a new site theme when a site or sub-site is created then you need to follow the following steps:- 1. Create a new feature and set the scope as “ApplyMyTheme” scope and set the scope as Web. Attach the Event Receiver…


"Could not instantiate script engine." while opening Site Manager in MCMS

Site Manager call the http:///NR/ClientUI/login.asp page.(if you right click on the site Manager -> properties, you will see the login url and NRClient.exe path) and got the the error message "Could not instantiate the script engine" Checked the IIS logs and saw the error message 403.6 error message "IP Address of the client has been…