Getting error when executing exe file from Batch service


  • Hi,

    I have created an on.Net application which is creating HDInsight R cluster. A code is working fine when I am executing it manually.

    But when I try to run Exe from ADF using Batch service I am getting below error.

    Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
       at Microsoft.Azure.Management.ResourceManager.Fluent.Core.ProviderRegistrationDelegatingHandler..ctor(AzureCredentials credentials)
       at Microsoft.Azure.Management.ResourceManager.Fluent.Core.AzureConfigurable`1.BuildRestClient(AzureCredentials credentials)
       at Microsoft.Azure.Management.Fluent.Azure.Configurable.Microsoft.Azure.Management.Fluent.Azure.IConfigurable.Authenticate(AzureCredentials credentials)
       at Hdinsight.hidinsight.executeSSHCommand(Int32 Cluster_Create_Delete_Flag)
       at Hdinsight.Program.Main(String[] args)

    <g class="gr_ gr_258 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace" data-gr-id="258" id="258">Thanks ,</g>

    Vipin Jha

    Thankx &amp; regards, Vipin jha MCP

    Saturday, September 15, 2018 2:09 PM

All replies