Skip to main content

Microsoft Silverlight

Tim HeuerPresented by:
Tim Heuer

How to Use Cross Domain Policy Files With Silverlight

0 0

Leave a Comment Comments (24) RSS Feed


shaggygi

Member

Member

59 Points

#1 April 18, 2008 4:00 PM

Good video.  Need to update the Duration to 9 minutes, 14 seconds.


heuertk

Member

Participant

1380 Points

#2 April 22, 2008 11:28 PM

fyi, the snippet file referred to in this sample is at timheuer.com/.../silverlight-cross-domain-policy-file-snippet-intellisense.aspx


brent...

Member

Member

3 Points

#3 May 17, 2008 7:48 AM

Is it possible to add new references to cross-domains at run-time? Let's say I want somebody to enroll and give me their domain name before I allow them to use my silverlight app. If I took that domain and added it the cross-domain xml file would that change occur without a compile or IIS reset?


Geord...

Member

Member

102 Points

#4 May 27, 2008 7:48 PM

It seems many RSS feeds are not includint the clientaccesspolicy.xml

How would we access the RSS feed?


heuertk

Member

Participant

1380 Points

#5 May 28, 2008 5:18 AM

@geordiejenner: yes, a cross domain file would be required.  for feeds hosted on feedburner, they have a crossdomain policy file :-) -- other sites would have to implement that.


heuertk

Member

Participant

1380 Points

#6 June 10, 2008 9:44 PM

Hi all -- FYI, the video shows the clientaccesspolicy.xml file as required for Silverlight Beta 1.  The code download, however has the correctly updated sample for Silverlight beta 2 (and future) that includes an additional attribute required on the allow-from node of the policy file.  The code snippet has also been updated.


scgm11

Member

Member

13 Points

#7 July 04, 2008 4:36 AM

great video, everithing you have to know for te policy, I encountered several problems with the place to put the policy in JBoss, the simplest solution is deploying with the policies.


GearW...

Member

Participant

837 Points

#8 August 14, 2008 2:58 AM

Can you take a look at this screenshot and tell me why I followed your entire video and I still have the 404 not found.  There's a slight difference between you and me.

I do have my service INSIDE my WebSite project.  Everything works fine when running in VS2008 but as soon as I run the deployed web site I have the 404 not found.  Even if you said not to put the clientaccesspolicy file on the web project.  What do I do in this situation ?

pages.videotron.com/.../whattodo.jpg


GearW...

Member

Participant

837 Points

#9 August 14, 2008 3:08 AM

Its me again.  The ROOT ? Its not clear to me what is the ROOT

I mean, let say in IIS I have a virtual directory called devpreview which point to a physical directory called

C:\Users\Gear\Documents\Visual Studio Codename Orcas\Projects\GearSite\PrecompiledWeb\GearSite_Web in which my deployed web site is including the policy file

So where's the ROOT ?

As I saw you, it was at the same place as the web.config.  But remember, mind is web site including the service so I have the web.config, the VisitorCount.svc and the clientaccesspolicy.xml at the same place.

Here's what the web site directory looks like :

pages.videotron.com/.../webdir.jpg


heuertk

Member

Participant

1380 Points

#10 August 14, 2008 6:33 AM

GearWorld: I think I'm emailing you offline as well perhaps, but I'll ask here just in case a diff person...is the SVC in the same site as the page hosting the Silverlight content?  if so, you do not need a x-domain policy file.

You must be logged in to leave a comment. Click here to log in.

Microsoft Communities