Tuesday, June 8, 2010

Unable to access Session in HttpHandler

It you are unable to access Session in HttpHandler and getting error “Object reference not set to an instance of an object”, so to fix this issue implement “IRequiresSessionState” interface like below after implimenting IRequiresSessionState you will be able to access Sessions in HttpHandler


public class CallBackHandler : IHttpHandler, IRequiresSessionState

No comments:

Post a Comment