microsoft / ApplicationInsights-Profiler-AspNetCore

Application Insights Profiler sample and documentation
MIT License
66 stars 24 forks source link

Getting System.IO.FileNotFoundException when running profiler on Azure App Service #77

Closed gouthampai closed 4 years ago

gouthampai commented 4 years ago

I'm running some .net core 3.1 APIs in azure app service and was taking a look through the exceptions in app insights. Something that stuck out to me was a large amount of System.IO.FileNotFoundException caused by the profiler trying to stop and being unable to find the file D:\home\site\wwwroot\ServiceProfiler\Azure.Core.dll . If it helps at all, this is a self contained deployment targeting .net core 3.1.1 on the win-x86 runtime. I'm using the following packages as suggested by the .net core 3.0 sample. Microsoft.ApplicationInsights.AspNetCore v2.12.1 Microsoft.ApplicationInsights.Profiler.AspNetCore v2.1.0-beta1

Here is the stack trace

Any Idea what could be causing this?

xiaomi7732 commented 4 years ago

@gouthampai, Based on the callstack, Azure.Core.dll doesn't exist in the 'ServiceProfiler' folder.

I verified the scenario with self-contained application on app service (win-x86). Unfortunately, I can't reproduce the issue you are seeing.

Based on that, there might be some step that I didn't notice that leads to this situation.

gouthampai commented 4 years ago

My ended up remediating the issue by removing the profiler for now.

On Thu, Apr 2, 2020, 8:16 PM Saar Shen notifications@github.com wrote:

@gouthampai https://github.com/gouthampai, Based on the callstack, Azure.Core.dll doesn't exist in the 'ServiceProfiler' folder.

I verified the scenario with self-contained application on app service (win-x86). Unfortunately, I can't reproduce the issue you are seeing.

Based on that, there might be some step that I didn't notice that leads to this situation.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/microsoft/ApplicationInsights-Profiler-AspNetCore/issues/77#issuecomment-608160819, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHRELP7D4NS64TWJEAWNERTRKUTHPANCNFSM4KYDGFFQ .

xiaomi7732 commented 4 years ago

Sure. Please feel free to create issue when you decide to enable the profiler again. I'll close this issue for now.