Options

Problem Working Navision and .Net Remoting

cloudninecloudnine Member Posts: 25
Hi guys...

I have a problem running an application using .Net Remoting with Navision.

Scenario is i have an API, let say as an interface API...APIone, that will call methods from another API...APItwo...this APItwo will call an adapter that is located remotely...I have created an automation variable in C/SIDE and refer it to APIone...debugging Navision and .NET application, I attached Visual Studio to the process fin.exe...while debugging, it ran to the code in APIone...then call a method in APItwo...when APItwo is now calling the remotely located Adapter...there came the problem...it can't establish a successful connection...something like "tcp" is already registered...something like that...

As a proof of concept...I created an application...a .Net application that will also call APIone who will then implements the methods in APItwo which is remotely calling an Adapter to be considered as successful transaction...It works fine...

The question is...what is happening? i mean calling from a .NET application against calling from Navision...

Thanks in advance guys...

Comments

  • Options
    cloudninecloudnine Member Posts: 25
    In addition...this is the particular error im encountering...

    //
    (ex.Message)
    Remoting configuration failed with the exception 'System.Runtime.Remoting.RemotingException: The channel 'tcp' is already registered.
    at System.Runtime.Remoting.Channels.ChannelServices.RegisterChannelInternal(IChannel chnl, Boolean ensureSecurity)
    at System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(IChannel chnl, Boolean ensureSecurity)
    at System.Runtime.Remoting.RemotingConfigHandler.ConfigureChannels(RemotingXmlConfigFileData configData, Boolean ensureSecurity)
    at System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData configData, Boolean ensureSecurity)'.

    (ex.StackTrace)
    at System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData configData, Boolean ensureSecurity)
    at System.Runtime.Remoting.RemotingConfigHandler.DoConfiguration(String filename, Boolean ensureSecurity)
    at System.Runtime.Remoting.RemotingConfiguration.Configure(String filename, Boolean ensureSecurity)
    at WebworksOS.DynamicPay.API.BaseDynamicPayObject..ctor() in D:\LOGAN\SOLUTION\DynamicPay\WebworksOS.DynamicPay.API\BaseDynamicPayObject.cs:line 20
    //

    Im not encountering this when im using my .Net app...

    Is Navision already registering the 'tcp' channel before the API actually tries to register the channel?

    Thanks guys...
Sign In or Register to comment.