SPLongOperation error for ItemAdding Event In SharePoint 2010
We recently upgrade one of our project from SharePoint 2007 to SharePoint 210. In that project we user event handler for list. In ItemAdding event we use to create new site which takes times for creation. So we use SPLongOperation to handle it but in SharePoint 2010 its same code gives error for "Object reference null" for SPLongOperation being statement. So we had following workaround for this problem. Create Web Part with following Code and add this web part to publishing Page protected override void CreateChildControls(){ if (this.Page.Request.QueryString["Processid"] != null) { using (SPLongOperation ctx = new SPLongOperation(this.Page)) { ...