WCF and Silverlight CrossDomain.xml?

It does matter where you place the policy file - it needs to be placed "at the root" of the web server that's running your service That's pretty well documented up at msdn.microsoft.com/en-us/library/cc19795...).aspx My best advice on these issues is to run the Fiddler tool and trace the traffic and you should see Silverlight looking for a clientaccesspolicy. Xml file (and also the crossdomain. Xml file which is a different format) and that should make it easier to determine where Silverlight is looking for the file Mike.

It does matter where you place the policy file - it needs to be placed "at the root" of the web server that's running your service. That's pretty well documented up at msdn.microsoft.com/en-us/library/cc19795...).aspx My best advice on these issues is to run the Fiddler tool and trace the traffic and you should see Silverlight looking for a clientaccesspolicy. Xml file (and also the crossdomain.

Xml file which is a different format) and that should make it easier to determine where Silverlight is looking for the file. Mike.

Thanks @Mike, I have installed fidler now and am have seen it looking for the clientaccesspolicy. Xml in "localhost:8732", I have tried adding the file into "C:\inetpub\wwwroot" but am having no luck. Is that where I need to put the file?(sorry, i'm fairly new to web dev) – Ben Jul 1 '10 at 8:57 Thanks @Mike,Fiddler debugger is really great for web developers – Ramakrishnan Jul 21 '10 at 8:00.

Here is a very simple crossdomain. Xml file. Compared to yours, it appears that you have written a clientaccesspolicy.

Xml file. Rename the file to clientaccesspolicy. Xml and you should be fine.

channel9.msdn.com/posts/mtaulty/Silverli... Secondly - the way I diagnose these is as follows; 1) I use Fiddler to make sure that I see Silverlight REQUEST a clientaccesspolicy. Xml file and that it GETS the clientaccesspolicy. Xml - i.e.

Check that your web server is returning clientaccesspolicy. Xml and silverlight is not getting a "NotFound" status back to its request. You can see that in Fiddler.

BTW - you don't mention whether you're using IIS or Cassini? IIRC "localhost" can present a few problems to fiddler so I usually use IIS and a proper machine name.2) When I know that Silverlight is definitely getting a clientaccesspolicy. Xml file what I then do is generally build the most relaxed version of the file I can think of.

Something like; and once I'm happy that this works I then refine the list of domains, paths, headers and methods down to what I actually need. Hope that helps.Mike.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions