Object reference not set to an instance of an object. Session httphandler

I get "Object reference not set to object instance". when i try to add access token from fb to httpcurrent.session object. I have a value in var accessToken and when I try to put it in the session I get an error. Please refer to the image.

enter image description here

Thanks for your help in advance, Laziale

+3


source to share


1 answer


You need to include session state in HttpHandler, so you need to implement

System.Web.SessionState.IRequiresSessionState

      



Change the following:

public class FacebookLogin : IHttpHandler, System.Web.SessionState.IRequiresSessionState

      

+5


source







All Articles