Im getting this error when trying to add a custome property to a webpart, what have I done wrong?
[WebBrowsable(true),
Personalizable(true),
WebDisplayName("Site Root"),
WebDescription("blah blah"),
Category("Custome Settings"),
WebPartStorage(Storage.Shared)]
public string SiteRoot
{
set { HttpContext.Current.Session["SiteRoot"] = value; }
}
(Image of error is here, cant put it the question as new users cant use the image tag!?! wtf?)