# Elastic APM Transaction are not showing in ASP.NET MVC Classic Framework

**URL:** <https://discuss.elastic.co/t/elastic-apm-transaction-are-not-showing-in-asp-net-mvc-classic-framework/219677>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [February 17, 2020, 8:17pm UTC](https://discuss.elastic.co/t/elastic-apm-transaction-are-not-showing-in-asp-net-mvc-classic-framework/219677 "2020-02-17T20:17:23Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![pvssraju](https://avatars.discourse-cdn.com/v4/letter/p/e47774/32.png) [@pvssraju](https://discuss.elastic.co/u/pvssraju)\
**Post date:** [February 17, 2020, 8:17pm UTC](https://discuss.elastic.co/t/elastic-apm-transaction-are-not-showing-in-asp-net-mvc-classic-framework/219677/1 "2020-02-17T20:17:23Z")

</div>

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text 🙂

**Kibana version** :  
7.5

**Elasticsearch version** :  
7.5  
**APM Server version** :  
7.6  
**APM Agent language and version** :  
[ASP.NET](http://ASP.NET) MVC (Classic) FrameWork Version 4.7.03062

**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)**:  
Not seeing any transaction or error from IIS [ASP.NET](http://ASP.NET) MVC framework after configured elastic APM.

Blow are to configuration in web.config

Tried to web site to get Transaction, but it is not showing.

---

<div class="post-metadata">

**Author:** ![GregKalapos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gregkalapos/32/37205_2.png) [@GregKalapos](https://discuss.elastic.co/u/GregKalapos)\
**Post date:** [February 17, 2020, 9:27pm UTC](https://discuss.elastic.co/t/elastic-apm-transaction-are-not-showing-in-asp-net-mvc-classic-framework/219677/2 "2020-02-17T21:27:09Z")

</div>

Hi @pvssraju, welcome on the forum.

I don't see the web.config - I guess it's missing. Could you take another try and add it?

Thanks,  
Greg

---

<div class="post-metadata">

**Author:** ![pvssraju](https://avatars.discourse-cdn.com/v4/letter/p/e47774/32.png) [@pvssraju](https://discuss.elastic.co/u/pvssraju)\
**Post date:** [February 18, 2020, 2:59pm UTC](https://discuss.elastic.co/t/elastic-apm-transaction-are-not-showing-in-asp-net-mvc-classic-framework/219677/3 "2020-02-18T14:59:51Z")

</div>

Below are the web.config I added

```
<add key="ElasticApm:ServerUrls" value="http://xxxxxxxxxxxx:8200" />
<add key="ElasticApm:ServiceName" value="xxxxxxx" />
<add key="ElasticApm:Environment" value="Dev" />
<add key="ElasticApm:LogLevel" value="Debug" />
<add key="ElasticApm:StackTraceLimit" value="-1" />
<add key="ElasticApm:SpanFramesMinDuration" value="-1ms" />
<add key="ElasticApm:TransactionSampleRate" value="1.0" />
<add key="ElasticApm:CaptureBody" value="all" />
```

---

<div class="post-metadata">

**Author:** ![GregKalapos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gregkalapos/32/37205_2.png) [@GregKalapos](https://discuss.elastic.co/u/GregKalapos)\
**Post date:** [February 18, 2020, 3:21pm UTC](https://discuss.elastic.co/t/elastic-apm-transaction-are-not-showing-in-asp-net-mvc-classic-framework/219677/4 "2020-02-18T15:21:08Z")

</div>

@pvssraju is this all under `<configuration> <appSettings> `, like this?

```auto
<?xml version="1.0" encoding="utf-8"?>
<!-- ... -->
<configuration>
    <!-- ... -->
    <appSettings>
        <!-- ... -->
        <add key="ElasticApm:ServerUrls" value="https://my-apm-server:8200" />
    </appSettings>
    <!-- ... -->
</configuration>

```

Also, maybe another idea: where is the server running, do you maybe also need to set the secret token? (you need that if this runs in elastic cloud)

---

<div class="post-metadata">

**Author:** ![pvssraju](https://avatars.discourse-cdn.com/v4/letter/p/e47774/32.png) [@pvssraju](https://discuss.elastic.co/u/pvssraju)\
**Post date:** [February 18, 2020, 4:01pm UTC](https://discuss.elastic.co/t/elastic-apm-transaction-are-not-showing-in-asp-net-mvc-classic-framework/219677/5 "2020-02-18T16:01:15Z")

</div>

Yes  
we are calling under  
`<configuration> <appSettings file="configs\AppSettings.config">`

we are using OpenSource in our own servers.

---

<div class="post-metadata">

**Author:** ![GregKalapos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gregkalapos/32/37205_2.png) [@GregKalapos](https://discuss.elastic.co/u/GregKalapos)\
**Post date:** [February 18, 2020, 10:19pm UTC](https://discuss.elastic.co/t/elastic-apm-transaction-are-not-showing-in-asp-net-mvc-classic-framework/219677/6 "2020-02-18T22:19:23Z")

</div>

Ok, so what I see from the config, it looks ok.

Do you have some logging system in place? We could look at the agent logs, if we turn those to `trace` probably we'll se what's going on here.

---

<div class="post-metadata">

**Author:** ![pvssraju](https://avatars.discourse-cdn.com/v4/letter/p/e47774/32.png) [@pvssraju](https://discuss.elastic.co/u/pvssraju)\
**Post date:** [February 19, 2020, 2:45am UTC](https://discuss.elastic.co/t/elastic-apm-transaction-are-not-showing-in-asp-net-mvc-classic-framework/219677/7 "2020-02-19T02:45:52Z")

</div>

Hi Greg,  
Yes we are using Serilog for application and log4net, below are the settings

```
<!--==============Serilog Configurations-->
<add key="isRollingFileLoggingEnabled" value="true"/>
<add key="filePathFormat" value="C:\\Errlogs\\xxxxx.serilog-{Date}.txt"/>
<add key="retainedFileCountLimit" value="10"/>
<!--Possible level values: Verbose, Debug, Information, Warning, Error, Fatal -->
<add key="rollingFileMinimumLevel" value="Information"/>
<add key="SerilogApplication" value="xxxxxxx-DEV"/>
```

---

<div class="post-metadata">

**Author:** ![pvssraju](https://avatars.discourse-cdn.com/v4/letter/p/e47774/32.png) [@pvssraju](https://discuss.elastic.co/u/pvssraju)\
**Post date:** [February 21, 2020, 4:22pm UTC](https://discuss.elastic.co/t/elastic-apm-transaction-are-not-showing-in-asp-net-mvc-classic-framework/219677/8 "2020-02-21T16:22:47Z")

</div>

Hi Greg,

Did you got chance to look this issue?

---

<div class="post-metadata">

**Author:** ![GregKalapos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gregkalapos/32/37205_2.png) [@GregKalapos](https://discuss.elastic.co/u/GregKalapos)\
**Post date:** [March 2, 2020, 8:46pm UTC](https://discuss.elastic.co/t/elastic-apm-transaction-are-not-showing-in-asp-net-mvc-classic-framework/219677/9 "2020-03-02T20:46:39Z")

</div>

Hey @pvssraju,

sorry for the late reply.

Ok, so, one idea could be to move the agent logs into serilog. You can configure this in the `Application_Start` method. [Here](https://github.com/elastic/apm-agent-dotnet/blob/c4aa609f63a18d1ed8c5b217672311d598738d0c/sample/AspNetFullFrameworkSampleApp/Global.asax.cs#L17) is an example for that.

So basically you'll need to implement the `IApmLogger` interface - [this](https://github.com/elastic/apm-agent-dotnet/blob/c4aa609f63a18d1ed8c5b217672311d598738d0c/sample/AspNetFullFrameworkSampleApp/App_Start/ApmLoggerToNLog.cs) is an example of that for NLog - and then in the `Application_Start` you need to set `AgentDependencies.Logger` to your implementation of `IApmLogger` which directs logs to serilog. From that point the agent will write all the logs to serilig.

What that we'll see the agent logs and hopefully we'll know what's the issue here.

---

<div class="post-metadata">

**Author:** ![pvssraju](https://avatars.discourse-cdn.com/v4/letter/p/e47774/32.png) [@pvssraju](https://discuss.elastic.co/u/pvssraju)\
**Post date:** [March 3, 2020, 8:11pm UTC](https://discuss.elastic.co/t/elastic-apm-transaction-are-not-showing-in-asp-net-mvc-classic-framework/219677/10 "2020-03-03T20:11:09Z")

</div>

I am working with DEV Team and do some changes in they code and will let you know if any helpful information we see.

---

<div class="post-metadata">

**Author:** ![GregKalapos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gregkalapos/32/37205_2.png) [@GregKalapos](https://discuss.elastic.co/u/GregKalapos)\
**Post date:** [March 3, 2020, 8:29pm UTC](https://discuss.elastic.co/t/elastic-apm-transaction-are-not-showing-in-asp-net-mvc-classic-framework/219677/11 "2020-03-03T20:29:46Z")

</div>

Perfect, thanks @pvssraju - ideally the logs will already show the root cause - I expect some connection issue between the APM Server and the agent; of course this is just speculation, the logs will tell us what really happens.

---

<div class="post-metadata">

**Author:** ![pvssraju](https://avatars.discourse-cdn.com/v4/letter/p/e47774/32.png) [@pvssraju](https://discuss.elastic.co/u/pvssraju)\
**Post date:** [March 3, 2020, 8:42pm UTC](https://discuss.elastic.co/t/elastic-apm-transaction-are-not-showing-in-asp-net-mvc-classic-framework/219677/12 "2020-03-03T20:42:01Z")

</div>

I already checked connection between servers and able to telnet to port 8200 from agent.

---

<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:** [March 24, 2020, 4:42pm UTC](https://discuss.elastic.co/t/elastic-apm-transaction-are-not-showing-in-asp-net-mvc-classic-framework/219677/13 "2020-03-24T16:42:04Z")

</div>

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