Attempted to use an object that has ceased to existThe resolution was to remove USING statement when using SPContext.Current.Web;
This issue happened because SPContext.Current.Web disposes the web object automatically, and by adding a
usingstatement, it will try to dispose it again when there's nothing to dispose.
No comments:
Post a Comment