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?



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.

| 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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