c# - 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.
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>
解决方案
推荐阅读
- java - 需要用Java序列化这个复杂的HashMap
- audio-recording - Windows 10 更新后立体声混音不再工作
- ios - 编译 Opencv V3.1 失败,找不到 install_name_tool
- ruby-on-rails - Vuejs Axios 请求
- python-3.x - 如何在python中通过屏幕录制录制语音
- ios - iOS 中曲线视图的点击问题
- sahi - Sahi 在单击打印按钮时无法打开 pdf 文件
- git - 为什么`git log --reverse --left-only --cherry-pick`没有按预期工作?
- parsing - ANTLR4 解析包含关键字的变量名
- javascript - 当我在同一个组件中同时使用 Router 和 Context 时,React 抛出错误