SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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 application which uses the client object model to access the sharepoint server. When i run the app "out-of-browser" with elevated trust everything works great, but when i try it in the browser i get a SecurityException.

Is there any way to change this?

FYI: The server and the app run on the same machine

share|improve this question
up vote 1 down vote accepted

You'll need a ClientAccessPolicy.xml file in the root of your web application.

Read more about this here:

share|improve this answer
thanks man. i thought. it doesn't need a clientaccesspolicy.xml on a local server. I guess sharepoint is special... – domueni Oct 7 '11 at 12:26
I could be wrong (been a while since I did Silverlight dev) but it might just be only for accessing the site locally. – James Love Oct 7 '11 at 12:27

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.