zapico
zapico

Reputation: 2396

Silverlight doesn't try to get clientaccesspolicy.xml

This question comes from this other one: Consuming WCF Service through https from Silverlight

After trying EVERYTHING to ensure this is not a certificate problem I have realize that silverlight doesn't even try to get the clientaccesspolicy.xml file (fiddler said that :-P).

Can anybody realize why?? Thanks in advance.

Upvotes: 1

Views: 845

Answers (3)

iCollect.it Ltd
iCollect.it Ltd

Reputation: 93561

Silverlight does not attempt to retrieve clientaccesspolicy.xml on localhost.

That probably makes sense as each service/website is run up on separate dev port number so there is no localhost port 80 by default while debugging. i.e. where should it get the file from?

Upvotes: 1

Bill Reiss
Bill Reiss

Reputation: 3460

It's really easy in Silverlight to accidentally go to localhost instead of the desired server when using WCF, and Fiddler won't show this by default, but you can turn it on. Apologies if you've already checked this.

Upvotes: 1

Steven Muhr
Steven Muhr

Reputation: 3379

If you are using SSL, you should setup fiddler in order to Decrypting HTTPS-protected traffic

Try this and host your ClientAccessPolicyService on the the SSL port.

Upvotes: 1

Related Questions