NullReferenceException in session

Posted by Oswaldlily under ASP.NET on 4/30/2013 | Points: 10 | Views : 2040 | Status : [Member] | Replies : 1
And also while storing into session facing "NullReferenceException error"
if (binaryvalue != null)
HttpContext.Current.Session["excelfile"] = binaryvalue;


Posted by: Jitendrasoft09 on: 4/30/2013 [Member] [MVP] Starter | Points: 25

As by default you can not store directly to binary, so check with session first is null or not, please look into below link that would be helpful for you.

Jitendra Kumar
If my post helps you, plz mark as an answer.

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response