c# 4.0 - sharepoint methodNotImplemented Exception? -


i trying upload pdf document in sharepoint getting exception methodnotimplemented in reference.cs , code follows:

public void scantosharepoint() {

        string source = "d:\\sharepoint.pdf";         string destination = "https://ms-shre2010/shared documents/adithyan_folder/what_is_sharepoint.pdf";          scandocumentref.fieldinformation fieldinfo = new scandocumentref.fieldinformation();         scandocumentref.fieldinformation[] fieldinfoarray = { fieldinfo };          filestream stream = new filestream(source, filemode.open, fileaccess.read);           byte[] bytearray = new byte[stream.length];         int convert = stream.read(bytearray, 0, convert.toint32(stream.length));         stream.close();          certificat();          uint getuint = scandoc.getitem(source, out fieldinfoarray,out bytearray);          scandocumentref.copyresult copyres1 = new scandocumentref.copyresult();         scandocumentref.copyresult copyres2 = new scandocumentref.copyresult();         scandocumentref.copyresult[] copyresarray = { copyres1,copyres2};         uint scanresult = scandoc.copyintoitems(source, destination, fieldinfoarray, bytearray, out copyresarray);      } 

when debug code hitting following code

internal uint copyintoitems(string source, string destination, fieldinformation[] fieldinfoarray, byte[] bytearray, out copyresult[] copyresarray) { throw new notimplementedexception();// throwing exception // return 0; }

moreover stream getting object disposed exception "cannot access closed file".

if out.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -