Description

Avoid using SPContext.Current outside of web request context.

Resolution

Pass SPWeb/SPSite object as parameter of method.

Links