hello
i've developed a ntier application by using the .NET remoting.the client application communicate with the server applicationvia .net remoting...
my code in the startup form of the client application is this:
Application.Run(new frmLogin());
HttpChannel channel = new HttpChannel(4000);
ChannelServices.RegisterChannel(channel);
WellKnownClientTypeEntry InsuranceRemoteType = new WellKnownClientTypeEntry(typeof(InsuranceFacadeLayer.GeneralFacadeLayer ),"http://localhost/Insurance");
RemotingConfiguration.RegisterWellKnownClientType(InsuranceRemoteType);
and the code for the class wich handle the remoting in the server application is this:
Application.Run(new Form1());
HttpChannel objChan = new HttpChannel( 4000 );
ChannelServices.RegisterChannel( objChan );
// register a well known type
RemotingConfiguration.RegisterWellKnownServiceType( typeof(GeneralFacadeLayer),
"Insurance",
WellKnownObjectMode.Singleton );
now i have a greate problem
this application works very good when the both client and server are installed in a same pc..but when using it remote..the program become very very slow!specially the first login to sqlserver is to slow..it can say it takes about 1 minutes to work..after that it become good..but again about some forms(not special one)..it became very slow..what is the reason for that is anything worng with the code

.net remoting problem?