Advertisement
PtiTom

SPException on Feaure Activation

Mar 16th, 2012 (edited)
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 KB | None | 0 0
  1. if (!string.IsNullOrEmpty(listName))
  2. {
  3.     featureParentWeb.AllowUnsafeUpdates = true;
  4.     CreateCalendarList(featureParentWeb, listName);
  5.     featureParentWeb.Update();
  6.     featureParentWeb.AllowUnsafeUpdates = false;
  7. }
  8. else
  9. {
  10.     throw new SPException("The list name is not correctly set. Please check that Tech parameters list is correctly deployed and activated and that entry XXX exists.");
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement