# Compatibility of apm server and apm agent version

**URL:** <https://discuss.elastic.co/t/compatibility-of-apm-server-and-apm-agent-version/287547>\
**Category:** APM\
**Tags:** dotnet, language-clients\
**Created:** [October 25, 2021, 7:36am UTC](https://discuss.elastic.co/t/compatibility-of-apm-server-and-apm-agent-version/287547 "2021-10-25T07:36:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [October 25, 2021, 7:36am UTC](https://discuss.elastic.co/t/compatibility-of-apm-server-and-apm-agent-version/287547/1 "2021-10-25T07:36:10Z")

</div>

After I updated apm agent 1.6.1 to 1.11.1, starting the service, an unexpected error occurred when executing the interface.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/e/eeecec9276de076d4ff4d40c838f08eda8d11c61.png)

According to the documentation, if server ≥ 6.5 should be able to support most agents, but now the error "Method not found" appears.

The agent rolls back to 1.6.1 and everything is normal.

apm server：7.12.0  
kibana：7.12.0  
.net core code

> 2021-10-25 14:59:40 ERROR 2fd502db4c1e184eb7eafee028d2c2b1 dea4ad13f269d949 Method not found: 'Void Elastic.Apm.Api.IExecutionSegment.CaptureException(System.Exception, System.String, Boolean, System.String)'.  
> System.MissingMethodException: Method not found: 'Void Elastic.Apm.Api.IExecutionSegment.CaptureException(System.Exception, System.String, Boolean, System.String)'.  
> at Lonsid.APM.LonsidExceptionFilter.\<\>c\_\_DisplayClass1\_0.b\_\_0()  
> at System.Threading.Tasks.Task.InnerInvoke()  
> at System.Threading.Tasks.Task.\<\>c.\<.cctor\>b\_\_274\_0(Object obj)  
> at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)  
> --- End of stack trace from previous location where exception was thrown ---  
> at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)  
> at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)  
> --- End of stack trace from previous location where exception was thrown ---  
> at Lonsid.APM.LonsidExceptionFilter.HandleAndWrapException(ExceptionContext context)  
> at Lonsid.APM.LonsidExceptionFilter.OnExceptionAsync(ExceptionContext context)  
> at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g\_\_Awaited|25\_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)  
> 2021-10-25 14:59:41 ERROR An unhandled exception has occurred while executing the request.  
> System.MissingMethodException: Method not found: 'Void Elastic.Apm.Api.IExecutionSegment.CaptureException(System.Exception, System.String, Boolean, System.String)'.  
> at Lonsid.APM.ExceptionEventHandler.HandleEvent(AbpHandledExceptionData eventData)  
> --- End of stack trace from previous location where exception was thrown ---  
> at Abp.Events.Bus.EventBus.Trigger(Type eventType, Object eventSource, IEventData eventData)  
> at Abp.Events.Bus.EventBus.Trigger[TEventData](Object eventSource, TEventData eventData)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/8/d808ce5c9449000b987d7ac6dd2bc5ea4e81bc30.png)

---

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [October 26, 2021, 5:23am UTC](https://discuss.elastic.co/t/compatibility-of-apm-server-and-apm-agent-version/287547/2 "2021-10-26T05:23:38Z")

</div>

This problem has been resolved. The apm agent package version of one of our underlying frameworks is too low, which is related to the package dependency version.

---

<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:** [November 16, 2021, 1:24am UTC](https://discuss.elastic.co/t/compatibility-of-apm-server-and-apm-agent-version/287547/3 "2021-11-16T01:24:34Z")

</div>

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