# Not logging errors for .net agent

**URL:** <https://discuss.elastic.co/t/not-logging-errors-for-net-agent/233395>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [May 19, 2020, 7:06pm UTC](https://discuss.elastic.co/t/not-logging-errors-for-net-agent/233395 "2020-05-19T19:06:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jose\_Luis\_Rodriguez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jose_luis_rodriguez/32/50275_2.png) [@Jose\_Luis\_Rodriguez](https://discuss.elastic.co/u/Jose_Luis_Rodriguez)\
**Post date:** [May 19, 2020, 7:06pm UTC](https://discuss.elastic.co/t/not-logging-errors-for-net-agent/233395/1 "2020-05-19T19:06:37Z")

</div>

Hi everyone, I'm trying out Elastic Cloud against a .net application, APM traces looks so good, however on Error tab I do not see any error, even when I inject errors on app to test it

I'm using latest version available on Elastic Cloud for products and using nuget packages according to Framework \>= 4.6 as ELK documentation noted.

I have configured Elastic APM module on web.config file, not directly on app code.

Thanks in advance for your help, We're evaluating best APM tool available for our application and this seems pretty good so far, however Error logging is of course a must to us.

---

<div class="post-metadata">

**Author:** ![dekim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dekim/32/68690_2.png) [@dekim](https://discuss.elastic.co/u/dekim)\
**Post date:** [May 20, 2020, 1:19am UTC](https://discuss.elastic.co/t/not-logging-errors-for-net-agent/233395/2 "2020-05-20T01:19:29Z")

</div>

Hello Jose,

Are you using a middleware to trap error?

We are having the same issue with a custom error handling middleware.

---

<div class="post-metadata">

**Author:** ![Jose\_Luis\_Rodriguez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jose_luis_rodriguez/32/50275_2.png) [@Jose\_Luis\_Rodriguez](https://discuss.elastic.co/u/Jose_Luis_Rodriguez)\
**Post date:** [May 20, 2020, 5:16am UTC](https://discuss.elastic.co/t/not-logging-errors-for-net-agent/233395/3 "2020-05-20T05:16:13Z")

</div>

Hi Michael thanks for responding and about your question, no, we don't use any middleware, in fact I can see some 500 and 4xx errors on Transaction tab when I zoom into specific transactions, but I cannot see anything on Error tab

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

---

<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:** [June 10, 2020, 1:19am UTC](https://discuss.elastic.co/t/not-logging-errors-for-net-agent/233395/4 "2020-06-10T01:19:55Z")

</div>

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