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


source to share

1 answer

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



Change the following:

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




All Articles