# Possible bug in elasticsearch nuget package

**URL:** <https://discuss.elastic.co/t/possible-bug-in-elasticsearch-nuget-package/244568>\
**Category:** Elasticsearch\
**Created:** [August 11, 2020, 1:53pm UTC](https://discuss.elastic.co/t/possible-bug-in-elasticsearch-nuget-package/244568 "2020-08-11T13:53:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vohanka](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vohanka/32/73673_2.png) [@vohanka](https://discuss.elastic.co/u/vohanka)\
**Post date:** [August 11, 2020, 1:53pm UTC](https://discuss.elastic.co/t/possible-bug-in-elasticsearch-nuget-package/244568/1 "2020-08-11T13:53:21Z")

</div>

Hi, I found that elastic maybe have error in requirements of his nuget package.

On nuget store is:  
Dependencies:  
.NET Framework, Version=v4.6.1  
System.Diagnostics.DiagnosticSource (\>= 4.5.1).

But if I try to run query into elasticSearch with DiagnosticSource library version greater than 4.5.1 it will endup with following error.

Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=4.0.3.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I think there is hardcoded version of DiagnosticSource library.

---

<div class="post-metadata">

**Author:** ![forloop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/forloop/32/9021_2.png) [@forloop](https://discuss.elastic.co/u/forloop)\
**Post date:** [August 17, 2020, 1:01am UTC](https://discuss.elastic.co/t/possible-bug-in-elasticsearch-nuget-package/244568/2 "2020-08-17T01:01:14Z")

</div>

Hi @vohanka, would you mind [opening an issue on the repository to discuss further](https://github.com/elastic/elasticsearch-net/issues/new/choose)? A small repro gist or repository would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 14, 2020, 1:01am UTC](https://discuss.elastic.co/t/possible-bug-in-elasticsearch-nuget-package/244568/3 "2020-09-14T01:01:18Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
