Skip to main content

Microsoft Silverlight

Answered Question Silver light policy file for sockets...RSS Feed

(0)

rscott
rscott

Member

Member

6 points

12 Posts

Silver light policy file for sockets...

ok, first off, I've seen a few of the posts about the policy.xml file that is needed to be served up on port 943 to get socket server's working again in beta 2.

I've got a policy server setup and working. This I have verified by stepping through the code. When my client attempts to connect to my server, I can see that it is also connecting to port 943 and being sent the policy file.

This is the XML file I'm sending:

<?xml version="1.0" encoding ="utf-8"?>

<access-policy>

<cross-domain-access>

<policy>

<allow-from>

<domain uri="file:///" />

<domain uri="*" />

</allow-from>

<grant-to>

<socket-resource port="4502-4506" protocol="tcp" />

</grant-to>

</policy>

</cross-domain-access>

</access-policy>

What I'm not sure about is the domain section. The file get served to the client, but the original connection never happens and no errors are thrown to suggest what the problem might be.

Any help out there please?

Thanks

Ryan

Yi-Lun Luo - MSFT
Yi-Lun L...

All-Star

All-Star

25052 points

2,747 Posts

Answered Question

Re: Silver light policy file for sockets...

Hello, can you post some code? How are you serving the policy file, and how are you establishing the socket connection? You may want to have a look at this blog post.

shanaolanxing - I'll transfer to the Windows Azure team, and will have limited time to participate in the Silverlight forum. Apologize if I don't answer your questions in time.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities