Alex
Alex

Reputation: 741

Silverlight SecurityException while accessing php rest

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

Answers (1)

iCollect.it Ltd
iCollect.it Ltd

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

Related Questions