G
Guest
I am working on a system, which among other things includes a server and a
..net control sitting in an html page and connected to the server. I ran into
a couple of problems, you guys might have some insight about.
1) It takes 20 sec or so to open a tcp socket from the client to the server.
It just sits in the TcpClient.conect waiting for something. When I run the
same control from a windows application it connects right away and works just
fine. The web based version also works fine after this initial delay. This
happens both with remoting over tcp as well as direct use of sockets – from
within browser it takes 20 sec whereas from windows app it goes right through.
2) I could not figure out how to configure security for remoting so that
server can connect back to the control for callback. The problem I could not
figure out is that by default IE does not allow remoting from controls it
hosts for obvious security reasons, so to make it work some permissions
should be asserted programmatically. I know how to do this and I have done
this for connection from the control to the server. The problem I could not
figure out is that callback objects are created by the system, not by any
code I wrote so I know what code should I write but I am lost as to where
should I put it.
..net control sitting in an html page and connected to the server. I ran into
a couple of problems, you guys might have some insight about.
1) It takes 20 sec or so to open a tcp socket from the client to the server.
It just sits in the TcpClient.conect waiting for something. When I run the
same control from a windows application it connects right away and works just
fine. The web based version also works fine after this initial delay. This
happens both with remoting over tcp as well as direct use of sockets – from
within browser it takes 20 sec whereas from windows app it goes right through.
2) I could not figure out how to configure security for remoting so that
server can connect back to the control for callback. The problem I could not
figure out is that by default IE does not allow remoting from controls it
hosts for obvious security reasons, so to make it work some permissions
should be asserted programmatically. I know how to do this and I have done
this for connection from the control to the server. The problem I could not
figure out is that callback objects are created by the system, not by any
code I wrote so I know what code should I write but I am lost as to where
should I put it.