Loading the data into sharepoint

Posted by Jeevani under SharePoint on 5/1/2013 | Points: 10 | Views : 1029 | Status : [Member] | Replies : 1
When i am Loading the data into list facing the error of
Object reference is not set to instance of object.

please give me the solution.


Posted by: Niladri.Biswas on: 5/3/2013 [Member] Platinum | Points: 25

It is happening because the collection is null at that point and you are trying to access it's Load property(probably) which is why this "null reference" expection is appearing.
Initialize the collection(list here) and then load the data. It will work.

Best Regards,
Niladri Biswas

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

Login to post response