Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Error "Object refernce not set" when using http context in Eventreceiver for Document Library,

$
0
0

Hi,

Httpcontext returning null values when I used in item adding event of document library.

I have a document set home page which has document set properties(by default) and one OOTB document library is placed in the same page.When user clicking on upload documents in the ribbon I need to read the document set properties.

when uploading the docs if I pass the Hardcoded item id of the document set I am getting the values of the document set in the item added event.

now the problem, i have the id in the query string if i want to read the query string value using httpcontext in the itemadding event and pass it to item added event using httpruntime it is throwing "object reference error" .

if any body has any solution/workaround how to read the context in the document library event receiver,please help me out.

Thanks ,G1


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>