# Stop Services After add environment variables of profiler

**URL:** <https://discuss.elastic.co/t/stop-services-after-add-environment-variables-of-profiler/327628>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [March 14, 2023, 6:11am UTC](https://discuss.elastic.co/t/stop-services-after-add-environment-variables-of-profiler/327628 "2023-03-14T06:11:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![minjung](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/minjung/32/116135_2.png) [@minjung](https://discuss.elastic.co/u/minjung)\
**Post date:** [March 14, 2023, 6:11am UTC](https://discuss.elastic.co/t/stop-services-after-add-environment-variables-of-profiler/327628/1 "2023-03-14T06:11:24Z")

</div>

Hi, now I want to use APM for .NET Framework. (WCF Service)

[apm agent dotnet](https://www.elastic.co/guide/en/apm/agent/dotnet/current/setup-auto-instrumentation.html#_systemd_systemctl)  
So I followed the manual of the apm agent dotnet manual to added environment variables of profiler.

[apm agent dotnet\_2](https://www.elastic.co/guide/en/apm/agent/dotnet/current/config-reporter.html)  
And i added the apm server url too.

And restarted services.  
But the service of .NET Framework is stopped.  
Also the I added ELASTIC\_APM\_PROFILER\_LOG option to check log, after added logs are left, but data is not coming in to APM Server.

So I don't know how to solve this problems.

The picture is the log of elastic apm profiler.

 ![logs](https://us1.discourse-cdn.com/elastic/original/3X/4/c/4c1d79206b0ad148561600ccc90a168d9cc96413.jpeg)

---

<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:** [April 4, 2023, 2:11am UTC](https://discuss.elastic.co/t/stop-services-after-add-environment-variables-of-profiler/327628/2 "2023-04-04T02:11:52Z")

</div>

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