locked
Remoting object disconnected RRS feed

  • Question

  • I am Getting this exception 

     

     

    System.Runtime.Remoting.RemotingException occurred

      Message="Object '/55337266_9751_4f58_8446_c54ff254222e/rkutlpt5hvsxipmzhb+jkqyl_98.rem' has been disconnected or does not exist at the server."

      Source="mscorlib"

      StackTrace:

        Server stack trace: 

           at System.Runtime.Remoting.Channels.ChannelServices.CheckDisconnectedOrCreateWellKnownObject(IMessage msg)

           at System.Runtime.Remoting.Channels.ChannelServices.DispatchMessage(IServerChannelSinkStack sinkStack, IMessage msg, IMessage& replyMsg)

        Exception rethrown at [0]: 

           at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

           at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

           at Common.Interface.Repository.NA.INRR.GetNRun(Int32 NetworkRunId)

           at Module.NA.ViewModel.NRDViewModel.get_AS()

      InnerException: 


    Most of the times i am getting this exception

    this is my remotingDomain method

    string tcpURL;
                TcpChannel channel;

                channel = new TcpChannel();
                ChannelServices.RegisterChannel(channel, false);

                //--
                // Remote domain objects
                //--
                tcpURL = string.Format("tcp://{0}:{1}/DomainComposition", ServerName,
                    TcpPort);
                RemotingConfiguration.RegisterWellKnownClientType(typeof(DomainComposition), tcpURL);

                //--
                // Remote repository objects
                //--
                tcpURL = string.Format("tcp://{0}:{1}/RepositoryComposition", ServerName,
                    TcpPort);
                RemotingConfiguration.RegisterWellKnownClientType(typeof(RepositoryComposition), tcpURL);

                //--
                // Remote utility objects
                //--
                tcpURL = string.Format("tcp://{0}:{1}/UtilityComposition", ServerName,
                    TcpPort);
                RemotingConfiguration.RegisterWellKnownClientType(typeof(UtilityComposition), tcpURL);

                this.Domain = new DomainComposition();
                this.Repository = new RepositoryComposition();
                this.Utility = new UtilityComposition();


    How to Check if the object is disconnect then re initiate the service 

     

    Tuesday, June 1, 2010 3:23 PM

Answers

All replies