# Current transaction is empty - AspNetFullFramework

**URL:** <https://discuss.elastic.co/t/current-transaction-is-empty-aspnetfullframework/206812>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [November 6, 2019, 2:57pm UTC](https://discuss.elastic.co/t/current-transaction-is-empty-aspnetfullframework/206812 "2019-11-06T14:57:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sgudjonsson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sgudjonsson/32/47173_2.png) [@sgudjonsson](https://discuss.elastic.co/u/sgudjonsson)\
**Post date:** [November 6, 2019, 2:57pm UTC](https://discuss.elastic.co/t/current-transaction-is-empty-aspnetfullframework/206812/1 "2019-11-06T14:57:43Z")

</div>

**APM Agent language and version** : [ASP.Net](http://ASP.Net) Full Framework 1.1.2

I'm trying to integrate the Full Framework agent into .Net 4.6.2 Web application via the IHttpModule

```
 <add name="ElasticApmModule" type="Elastic.Apm.AspNetFullFramework.ElasticApmModule" preCondition="managedHandler"/>

```

The application is hosted in IIS and the requests we are making to the application are handled by Web API controllers.

Everything seems to be working perfectly until I try to start or capture a span from the current transaction for some custom backend/library requests/calls we are making from our application.

If the application is getting multiple requests it looks like the CurrentTransaction is null.

```
ITransaction transaction = Elastic.Apm.Agent.Tracer.CurrentTransaction;
// this returns null for some requests.

```

Have you seen any issues related to what I'm experiencing?

Best regards,  
Sigurbjorn

---

<div class="post-metadata">

**Author:** ![Sergey\_Kleyman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sergey_kleyman/32/39333_2.png) [@Sergey\_Kleyman](https://discuss.elastic.co/u/Sergey_Kleyman)\
**Post date:** [November 10, 2019, 11:43am UTC](https://discuss.elastic.co/t/current-transaction-is-empty-aspnetfullframework/206812/2 "2019-11-10T11:43:41Z")

</div>

HI @sgudjonsson - welcome to the forum!

Your issue might be related to [this discussion](https://github.com/elastic/apm-agent-dotnet/issues/83#issuecomment-516472934) although I am not sure what you mean by

> Everything seems to be working perfectly

Do you mean that for your application, automatically captured transactions contain expected automatically captured spans (DB or outgoing HTTP calls)?

---

<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:** [December 1, 2019, 7:45am UTC](https://discuss.elastic.co/t/current-transaction-is-empty-aspnetfullframework/206812/3 "2019-12-01T07:45:57Z")

</div>

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