7 Replies Latest reply on Jul 3, 2014 3:45 PM by Erik Hooper

    Responder/System.Runtime.Remoting.RemotingException

    Julio Dumeynieu

      Can you tell me which is the cause of this problem?

       

      "Error de configuración de la comunicación remota con la excepción System.Runtime.Remoting.RemotingException: Ya se ha establecido el nombre de aplicación de comunicación remota ResponderCalled en System.Runtime.Remoting.RemotingConfigHandler.set_ApplicationName(String value)\r\n en System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData configData, Boolean ensureSecurity)."

       

      Thanks in advance

      Regards

        • Re: Responder/System.Runtime.Remoting.RemotingException
          Erik Hooper

          Is the application name set? For example in the Miner.Responder.Explorer.exe.config

          <system.runtime.remoting>

              <channels>

                    ...

              </channels>

              <application name="RxExplorer">

            • Re: Responder/System.Runtime.Remoting.RemotingException
              Gabriel Ance

              Hello. The application's name was setting. The application in fact it's a web service and it use to insert a new call in responder. The question is... there is any particular configuration that we most do??

                • Re: Responder/System.Runtime.Remoting.RemotingException
                  Erik Hooper

                  As long as you have an application name set differently from other services, and the remoting channels setup correctly that should do the trick. You will have to initialize the channel before using it. There is a method called in Miner.Responder.Shared called Responder.Shared.RemotingHelper.Configure(); that should setup that channel for you. You need to also make sure the current domain is using the windows principal policy for example: AppDomain.CurrentDomain.SetPrincipalPolicy(System.Security.Principal.PrincipalPolicy.WindowsPrincipal);

                  If you send me your remoting configuration I can take a look and see if I see anything wrong.

                    • Re: Responder/System.Runtime.Remoting.RemotingException
                      Julio Dumeynieu

                      Code:

                      public insertCall(string account)

                      {

                                  IDataServices dataServices = null;

                                  try

                                     {

                                      Iniciar();

                                      dataServices = ResponderServices.GetDataServices(ConfigurationManager.AppSettings["URLSCADA"].ToString());

                                      DataSet dataset = GetSchema(dataServices);

                                      dataset.Clear();

                                }

                                ....

                      }



                             private void Iniciar()

                              {

                                  AppDomain.CurrentDomain.SetPrincipalPolicy(System.Security.Principal.PrincipalPolicy.WindowsPrincipal);

                                  try

                                  {

                                      RemotingHelper.Configure(AppDomain.CurrentDomain.BaseDirectory + "\\Web.config");

                                  }

                                  catch (Exception ex)

                                  {

                                      throw ex;

                                  }

                                  RxDb.ConfiguratorResolve += new RxDb.ConfiguratorResolveEventHandler(RxDb_ConfiguratorResolve);

                              }

                      Webconfig:

                        <appSettings>....

                           .....

                          <add key="URLSCADA" value="msmq://FormatName:DIRECT=OS:responder\private$\rxserver/DataServices.rem" />

                        </appSettings>

                         .........

                        <system.runtime.remoting>

                          <channels>

                            <channel id="msmq" type="Miner.Responder.Shared.Channels.MSMQ.MSMQChannel, Miner.Responder.Shared" />

                          </channels>

                          <application name="ResponderCalled">

                            <client>

                              <wellknown

                        type="Miner.Responder.Shared.IDataServices, Miner.Responder.Shared" url="msmq://FormatName:DIRECT=OS:responder\private$\rxserver/DataServices.rem"/>

                            </client>

                            <channels>

                              <channel ref="msmq" ComputerName="." />

                            </channels>

                          </application>

                        </system.runtime.remoting>