Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Error @ :: Microsoft.SharePoint.Client.File.OpenBinaryDirect :: the property or field has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested

$
0
0

I am trying to download a document from SharePoint online using claims authentication. I could successfully get the context and able to view the list and list items. when I try

FileInformationfInfo = Microsoft.SharePoint.Client.File.OpenBinaryDirect(ctx, item["fileref"].ToString());

to open a specific document, I get the error "The property or field has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested".

Please help where can I go!

TIA


Viewing all articles
Browse latest Browse all 7589

Trending Articles



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