Reputation: 741
im trying to access a php rest service on a different server with silverlight, but everytime i do the
request.EndGetResponse(ar) as HttpWebResponse;
it throws a SecurityException any idea how i can fix this?
Upvotes: 0
Views: 120
Reputation: 93561
Take a look at the URL Access Restrictions in Silverlight:
Also try adding the <allow-from http-request-headers="*">
statement in the clientaccesspolicy.xml on the php site.
When in doubt, run fiddler so you can see the exact sequence of web calls.
Upvotes: 1