SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Silverlight 5 app hosted in SharePoint Online, which asks the users 72 questions and right at the end writes their answers to some SharePoint lists.

When I trialled it with 8 users, the first four to finish had their results save to the list fine. The last four to finish didn't get their results saved.

All users had CONTRIBUTE access to the site in question.

I am thinking that somehow, the apps access to SharePoint via the Client Object model has timed out with the users who took longer to complete the test. Is this likely?

If that is the problem, are there any known solutions?


share|improve this question

Set the timeout to -1, this should prevent it.

context.RequestTimeout = -1

You can also set

KeepAlive = true;

And also there are more options in


Depends on your code as to why exactly but those are the places to prevent it.

share|improve this answer
Thanks Hugh. But option 1 doesn't seem to help. Option 2 doesn't seem to be valid, and I can't figure out how to implement option 3. – finisterre Dec 10 '12 at 12:55
KeepAlive is on the spweb I think, and 3, there are a bunch of options in that name space you can use. – Hugh Wood Dec 10 '12 at 13:34
I don't seem to be able to add any reference (Microsoft.SharePoint.Administration?) that will recognise SPWeb or SPWebApplication. Any ideas where I'm doing wrong? – finisterre Dec 10 '12 at 14:36
Still no joy with this. Can anyone help? Thanks. – finisterre Jan 11 '13 at 14:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.