AnsweredAssumed Answered

getting a run-time error when binding a transitive dependency

Question asked by rupert_he360 on Mar 9, 2020
Latest reply on Mar 17, 2020 by UHarano-esristaff

Hi All,

 

I've just started developing on the ArcGis Pro SDK and I'm running into an issue when binding transitive dependencies.

 

  • My add-in uses the Newtonsoft Json.net package (v12.3)
  • I am also using GeoJson.Net (v1.2.15), which is compiled against Newtonsoft Json.net v10
  • In my test module's app.config I have a binding redirect as follows

       <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />

 

The test module works fine & the binding redirect is found and works expected (see attached binding log)

When running in my ArcGis module the binding fails (also see attached)

 

Has anyone had experience in solving this problem? This is the second time I've hit this problem and I just worked around it before, but now I'd like to get to the bottom of the issue,

 

Any help much appreicated,

 

Rupert Lloyd

HawkEye360

Outcomes