Skip to main content
Home Forums General Silverlight Getting Started Issue in Sliverlight +WCF services
6 replies. Latest Post by Jonathan Shen – MSFT on July 6, 2009.
(0)
pinks123
Member
24 points
32 Posts
06-30-2009 4:06 AM |
"1.0" encoding="utf-8" ?> - - - - "*"> "*"> clientDomainPolicy.xml - "/" include-subpaths="true"> clientpolicy.xml "1.0" ?> for full doctype...)> - "*" headers="*" secure="true">
jay nana...
Contributor
3388 points
624 Posts
06-30-2009 4:24 AM |
Where do you put the clientaccesspolicy.xml file? It should be in the root of the site where webservice resides. in you case it should be at "http://localhost:8731/Design_Time_Addresses"
koyot3
Participant
805 points
172 Posts
06-30-2009 5:30 AM |
try it :
in your wcf projet (i guess you're using VS 2008), right click, add new xml file and add clientaccesspolicy.xml
<?xml version="1.0" encoding="utf-8"?><access-policy> <cross-domain-access> <policy> <allow-from http-request-headers="*"> <domain uri="*" /> </allow-from> <grant-to> <resource path="/" include-subpaths="true"/> </grant-to> </policy> </cross-domain-access></access-policy>
next add crossdomain.xml
<?xml version="1.0"?><!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"><cross-domain-policy> <allow-http-request-headers-from domain="*" headers="*"/></cross-domain-policy>
create a new website in your solution, right click on it, property page, application silverlight and select your application...
set this web site as your "start" project for your solution
hope this help
johan
06-30-2009 5:46 AM |
did lik tht..but stil throws errr.
What to do for this
06-30-2009 5:58 AM |
are you sure your xml files are loaded ????
look for Fiddler on google to see loading files...
are you sur that your xml files are corrects ?
MarkMonster
5220 points
1,046 Posts
06-30-2009 6:47 AM |
When you try to access the following urls, does it return something?
http://localhost:8731/clientaccesspolicy.xml
http://localhost:8731/crossdomain.xml
Jonathan...
All-Star
24939 points
2,425 Posts
07-06-2009 2:33 AM |
Hi Pinks123,
Please reference to "HOW TO USE CROSS DOMAIN POLICY FILES WITH SILVERLIGHT".
Best regards,
Jonathan