Cannot save the property settings for this Web Part. Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION))
I personally hate this post...but it did work for my developer :
If you are using the "using" statement on the webpart page load, you might end up getting this.
Wrong Coding for this scenario :
using(SPWeb oWeb = SPControl.GetContextWeb(Context))
{
....
}
Correct way of using :
SPSite site = new SPSite(SPContext.Current.Site.ID);
--
site.Dispose();
If you are using the "using" statement on the webpart page load, you might end up getting this.
Wrong Coding for this scenario :
using(SPWeb oWeb = SPControl.GetContextWeb(Context))
{
....
}
Correct way of using :
SPSite site = new SPSite(SPContext.Current.Site.ID);
--
site.Dispose();
Comments