Tagged Questions
3
votes
3answers
1k views
Unable to modify SPWebApplication properties from feature receiver - Access Denied
The scope of the feature is Web.
SPWeb site = (SPWeb)properties.Feature.Parent;
site.AllowUnsafeUpdates = true;
// Set the Web Application's default error page
SPSite siteCollection = new ...