Posted on: 2/17/2014 5:47:37 AM | Views : 684

Dear,
I have a Remoting application which uses a class library to get some work done , i am referencing this class library from a console application which serves as a host for the class library, the clent in this application is asp.net web page , the problem i am getting is that if i choose windows form instead all the project runs fine but when i choose asp.net website it gives an error stating that the TCP port is already registered,i am new to Remoting any light will be appreciated,
here is my code of the host,
[STAThread] static void Main(string[] args) { TcpServerChannel channel = new TcpServerChannel(48042); ChannelServices.RegisterChannel(channel, false); RemotingConfiguration.RegisterWellKnownServiceType(typeof(ShowCapital.ShowCapitalClass), "ShowCapital1", WellKnownObjectMode.SingleCall); Console.WriteLine("Starting Host..."); ...

Go to the complete details ...