Hi
I am developing console application (in c#)which takes files from local system (c:\) and transfer it into sharepoint 2010 Record center.But i am getting following exception
"Unhandled Exception: System.ServiceModel.FaultException: Server was unable to process request. ---> Operation is not valid due to the current state of the object."
Bleow mentioned is stack trace
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRunt
ime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean on
eway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan tim
eout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean on
eway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCall
Message methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)"
Below is snippet of code:
RecordsRepositorySoapClient repository;
repository = new ConsoleApplication1.OfficialFileService.RecordsRepositorySoapClient();
repository.SubmitFile(fileContent, properties.ToArray(),null,sourceUrl,userName); --we are getting above mentioned error at this line