Can anybody tell me what is wrong with this code snippet:


' Create a new TCP Channel to accept remote requests
' Using Channel 51010 as nobody else ought to be using it
Channel = New TcpChannel(51010)

' Register the channel
ChannelServices.RegisterChannel(Channel)

' Create a Singleton class
Manager = New DistributedInterfaceLibrary.ManagerClass

' Expose the Singleton SAO
RemotingServices.Marshal(Manager, "SECOManager.rem")

I am trying to create a Singleton SAO, but when i try to start my service with this code in it, it Starts and immediately stops.