Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Cross Domain Policy Files
AndyCronk
#1 Posted : Wednesday, August 26, 2009 3:40:05 AM(UTC)
Groups: Member
Joined: 8/26/2009(UTC)
Posts: 2
Location: Bristol UK

Hi,
I am using Cassini to demonstrate our Silverlight application which connects to another website (containing WCF services) also hosted in Cassini. I don't know where to put the ClientAccessPolicy.xml file which on IIS needs to be in the root (c:\inetpub\wwwroot) to allow communication between the application and the site. Some of the WCF calls are working, some are not and it appears to be the lack of a ClientAccessPolicy.xml file which is causing this.
Where should I put this file?

Regards,

Andy
Ultidev Team
#2 Posted : Wednesday, August 26, 2009 8:01:19 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hello, Andy.

Thank you for using UltiDev Cassini. We'll do our best help you resolve the issue.

Although we have not tested web apps taking cross-domain services calls, it seems that placing the ClientAccessPolicy.xml file into the same folder as your app's "physical location" folder should work. Please note that since all Cassini applications are at the "root" - because they have different port numbers but share the same host name, each of your silverlight apps hosted by Cassini is likely to need the ClientAccessPolicy.xml file in the same folder as the app's physical location.

Please let us know if this information has helped.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
AndyCronk
#3 Posted : Wednesday, September 9, 2009 11:53:03 PM(UTC)
Groups: Member
Joined: 8/26/2009(UTC)
Posts: 2
Location: Bristol UK

My apologies for the late reply I have been on holiday and have only just re-examined this problem.
It is odd as I have a number of services, at least two work and at least 2 fail, with either the cross domain problem, or more usually 401 remote server not found (which is a generic error silverlight gets if a problem occurs within wcf).
I think it may be a permissions issue as one of the services being called cannot subsequently call a web service.
It looks like it is a permissions issue as I have changed the user running the cassini service to me and some of it has now started working. Therefore it is less likely that it couldn't detect the cross domain file and more likely to be the user running the service. Having changed the service to running under my user I now get a different problem.
Are there any other users that Cassini uses to host web sites or is it just the user defined in the service?
Rss Feed  Atom Feed
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.