-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in Azure Web App Virtual Directory: "Could not load file or assembly 'Microsoft.AspNet.TelemetryCorrelation' or one of its dependencies." #21
Comments
@BryanWilhite few questions:
|
@SergeyKanzhelev this was on Azure configured for .NET and Application Insights was enabled from Visual Studio. |
So you enabled Application Insights and then cleaned up BTW, do you call Application Insights explicitly? If not - I wonder how it got initialized at all without the mention of Application Insights http module there. (What FW version? 4.6?) |
steps to repeat:
I expect that going to |
@clguimanMSFT, @iusafaro can you please take a look |
@BryanWilhite What do you mean by "set up a root Web App in Azure with Application Insights"? |
I believe @BryanWilhite means something like this https://blogs.msdn.microsoft.com/tomholl/2014/09/21/deploying-multiple-virtual-directories-to-a-single-azure-website/. Bryan, correct me if I'm wrong |
Let's go with click on "Configure Application Insights" from the project contextual menu in Visual Studio; let's assume the simplest Visual-Studio-based scenario so misunderstanding does not run wild. |
I have the same problem. I have an ASP.NET WebSite with ApplicationInsight installed and a virtual application configured. A simple html file in the application. If i load the file with absolute URL, it work but not if i load the racine of the virtual application |
@BryanWilhite i had the same issue and a quick workaround was to add |
Hi, any updates on this topic? Currently facing the exact same problem. I have a ASP.NET (.NET Framework) based application using AppInsights deployed to the root virtual application and a NodeJS App running inside another virtual application using AppInsights, too. |
@clguimanMSFT @Mikhail-Pranovich can you please confirm that the next release with the global module will address this issue? If not - can you please track this issue and give updates? |
@SergeyKanzhelev, the issue is not related to WebApps ApplicationInsights extension, and is not related to ApplicationInsights SDK. According to repro I saw this is purely within 'Microsoft.AspNet.TelemetryCorrelation' where if it is used in web.config of root application, the subapplication would try to load it as well. |
Hi, My solution was to add the following to the Web.Config: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<modules runAllManagedModulesForAllRequests="false">
<remove name="TelemetryCorrelationHttpModule" />
<remove name="ApplicationInsightsWebTracking" />
</modules>
</system.webServer>
</configuration> |
Hi, |
Is this still an on going issue for over 3 years now? |
I was having a similar problem and that worked for me. Thanks |
@Mikhail-msft - FYSA, this bug still exists and was observed on 04/20/2022. The solution offered by @boyukbas was successful in resolving our issue. |
Still the same in Dec 2023. Virtual applications under Azure App Service web apps using TelementryCorreletion also try to load this library. I also solved it with the |
In an Azure Virtual Directory with just
index.html
and a minimalWeb.config
throws this error:This error is thrown when navigating to
/
instead of/index.html
. An error will occur when Web.config is not present (but no error message is shown).The parent/root application is, of course, configured for App Insights telemetry. Is this expected behavior for an expected error condition? Do we need to have App Insights installed for every Virtual Directory?
BTW: this is the minimal Web.config:
The text was updated successfully, but these errors were encountered: