Sorry I had pasted another code for this function. This is the changed code
in the server side assembly
[quoted text, click to view] > virtual System::Object* InitializeLifetimeService() {return 0;};
> void privateRegisterForRemoting()
> {
> try
> {
> System::Runtime::Remoting::RemotingConfiguration::Configure(System::AppDomain::CurrentDomain->SetupInformation->ConfigurationFile);
> System::Runtime::Remoting::RemotingServices::Marshal(this, "***.rem");
> }
> catch(System::Exception* a_pException)
> {
> WRITETOSYSTEMLOG(a_pException);
> }
> };