Welcome to my personal blog, All the information in this bogs is my ideas,findings and thoughts on .Net, Asp.Net and SharePoint.
ALL POSTING ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND
Per my observation, this behavior is due to some internal expection occured because of HTTPContext.Current is invalid, As a work-around execute the code within a web-based application.
Anonymous comments are disabled