1
vote
0answers
149 views

Linq to Sharepoint throws System.IndexOutOfRangeException

I have used entity class generated from SPMetal to retrieve data from sharepoint list. Frequently I am getting the below error on the sharepoint page and not able to do anything in the site. This ...
5
votes
3answers
754 views

sharepoint caml is fast - how?

We all know that Caml is faster than using linq, since linq internally gets translated to caml. But can anyone explain how caml is best to do sharepoint queries or how it is fast or what makes it ...
0
votes
1answer
264 views

How to do Scope=RecursiveAll with Linq To Sharepoit

I have the following CAML query: caml = string.Format("{0}", code); query = new SPQuery { Query = caml, ViewAttributes = "Scope = \"RecursiveAll\"" }; This query search in a document library a list ...
0
votes
2answers
175 views

Delete item from COM. Don't find Item

I'm trying to delete but the code seems that can't find the Item field : try { using (ClientContext context = new ClientContext("http://to0wss2k10rey03/sites/ReplyCorp")) ...
0
votes
1answer
64 views

Get client query of a server query

I?m trying to get how can I get the query but on the client context? SPWeb webRoot = scSite.OpenWeb(); SPListItem selectedItem = (from SPListItem item in ...
1
vote
1answer
168 views

LINQ Query to obtain only the list names

How can I get only the lists present in a particular site? I've tried the following one: var listNames = from SPList list in web.Lists where list.BaseTemplate != ...
2
votes
2answers
820 views

How to find a file with name = X in a SPList

Looking for recommendations. Have a file in a document library with name x.txt. In a workflow code behind, I need to get the file to read its contents. What is the best/most efficient way to do ...