![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have a client and server that uses remoting to test the differences between the different combinations of channels and formatters (well, at least it attempts to). Here's the problem. The server is setup for TCP:8081 with a binary formatter. The client can switch between binary and soap. I do this by unregistering the channel and the re-registering it with the correct formatter. What happens though is that the runtime completely ignores my unregister/re-register action. If I invoke the object for the first time using soap it causes an exception as expected. If I switch to binary though (unregister the channel with a soap formatter and register a new channel with a binary formatter), it still fails with the same exception! The other ways around is also true, ie using binary first will succeed, but then using soap subsequently also succeeds!! Obviously the unregister does not kill the channel, and registering a new one does not replace the first one register (even though checking ChannelServices.RegisteredChannels show the old channel being removed and the new one being registered). I have to restart the client to clear whatever is being "cached". What is going on here? How can I force my client to kill all channels/proxies/whatever else so I can switch to a different formatter at runtime? Thanks for you help. Tallies |
#3
| |||
| |||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |