|
Problem with Silverlight Glacier2 Callback demo
When I run the Glacier2 Callback demo with the democs server everything work fine as long as server, glacier2, policyserver and client run on the same machine.
I have a problem in the following case:
1. Server, and glacier2 run on one machine.
2. The client and the policyserver runs on the other machine.
My first try was just to run the policyserver using ip-address 127.0.0.1 at the commandline and run the code. When I press the login button I get a ConnectionRefused exception.
Of course the client is not able to get to glacier2 at the server side. So I changed the Ice.Default.Router property inisde the client-code to make it point to the IP address of the machine with glacier2. The policyserver remains to run using 127.0.0.1. When I then run the code I get an AccessDenied exception.
When reading the INSTALL.WINDOWS of the chatdemo I found out the policyserver must listen to the same IP-address as where the website is hosted. So instead of using 127.0.0.1 I let the policyserver run using the IP address of the client. In this case I also get an AccessDenied exception.
However when I let the policyserver run at the server using the IP address of the server I am able to establish a connection.
This is not as I expected since:
1. The policyserver is only required in case of using a Silverlight client, so I wuold expect the policyserver to run on the client side.
2. In my case the server side runs Linux and I am not able to run a policyserver there.
I expect to be able to let a silverlight client run on top of a linux server, without the need to change the server.
I have the following questions:
1. Is it true that I should be able to run a Silverlight client on top of a linux server?
2. In case that it should be possible, how must I configure/use the policyserver to get things to work?
Hope to read from you soon.
Joost van Doorn
|