# Additional information: Method not found: 'Elasticsearch.Net.IApiCallDetails Elasticsearch.Net.IBodyWithApiCallDetails.get\_CallDetails()'

**URL:** <https://discuss.elastic.co/t/additional-information-method-not-found-elasticsearch-net-iapicalldetails-elasticsearch-net-ibodywithapicalldetails-get-calldetails/81087>\
**Category:** Elasticsearch\
**Created:** [April 4, 2017, 6:35am UTC](https://discuss.elastic.co/t/additional-information-method-not-found-elasticsearch-net-iapicalldetails-elasticsearch-net-ibodywithapicalldetails-get-calldetails/81087 "2017-04-04T06:35:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![1stefan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/1stefan/32/17018_2.png) [@1stefan](https://discuss.elastic.co/u/1stefan)\
**Post date:** [April 4, 2017, 6:35am UTC](https://discuss.elastic.co/t/additional-information-method-not-found-elasticsearch-net-iapicalldetails-elasticsearch-net-ibodywithapicalldetails-get-calldetails/81087/1 "2017-04-04T06:35:44Z")

</div>

After I upgraded the reference [Elasticserach.Net](http://Elasticserach.Net) from v1 to v5, I keeping getting this error:

`Additional information: Method not found: 'Elasticsearch.Net.IApiCallDetails Elasticsearch.Net.IBodyWithApiCallDetails.get_CallDetails()'.`

I'm not sure where it comes from, I tried to change the code for connection to elasticsearch just like here [https://www.elastic.co/guide/en/elasticsearch/client/net-api/current/connecting.html](https://www.elastic.co/guide/en/elasticsearch/client/net-api/current/connecting.html)

It crashes in the controller. When in debug I doesnt actually get to GetServicesStatus(), I guess it only initialize StatsFacade. And the problem is the connection settings etc.

Any ideas why this is happening?

```
[HttpGet]
[Route("servicesState")]
public HttpResponseMessage GetServicesState()
{
    var servicesState = StatsFacade.GetServicesStatus();
    return servicesState;
}

public class StatsFacade : BaseFacade
{
    public const int DefaultDaysRange = 10;

    static SingleNodeConnectionPool connectionPool = new SingleNodeConnectionPool(new Uri(ConfigurationManager.AppSettings["Stats:ConnectionString"]));

    static ConnectionSettings _apiCallsSettings = new ConnectionSettings(connectionPool, new InMemoryConnection())
                                                    .DefaultIndex(ConfigurationManager.AppSettings["Stats:DefaultIndex"])
                                                    .BasicAuthentication(ConfigurationManager.AppSettings["Es:User"], ConfigurationManager.AppSettings["Es:Password"])
                                                    .DisableDirectStreaming();

    public static HttpResponseMessage GetServicesStatus()
    {
        ElasticClient client = new ElasticClient(_apiCallsSettings);
        //...
        //...
    }
}

```

It crashes on ElasticClient initialization `ElasticClient client = new ElasticClient(_apiCallsSettings);`

---

<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:** [May 2, 2017, 6:35am UTC](https://discuss.elastic.co/t/additional-information-method-not-found-elasticsearch-net-iapicalldetails-elasticsearch-net-ibodywithapicalldetails-get-calldetails/81087/2 "2017-05-02T06:35:49Z")

</div>

Closed on May 2, 2017, 6:35am UTC

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