Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

1 Answer 1

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: http://www.dev4side.com/community/blog/2010/8/15/security-error-using-sharepoint-2010-client-object-model-for-silverlight.aspx

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

 
discard

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.