首页 > 解决方案 > Facing Issue when the NEST DLL upgraded for elastic search

问题描述

I have a .csproj(.NET 4.6.1 version) which consumes ElasticSearch.net and Nest nuget packages, today these dll's are upgraded to new version 7.1.0.

Since ElasticSearch.net has a dependency on System.Diagnostics.DiagnosticSource (>= 4.5.1) the dll is upgraded to the dependent version.

when the code is run the below error shows up.

Error Message

To overcome the above issue a dependent assembly is included in the app.config as below but there is no luck with the changes done, any help highly appreciated.

 <dependentAssembly>
   <assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
   <bindingRedirect oldVersion="0.0.0.0-4.0.3.1" newVersion="4.0.3.1" />
  </dependentAssembly>

标签: c#elasticsearchnest

解决方案


推荐阅读