locked
Application Insights RRS feed

  • Question

  • User657329123 posted

    Hi,

    Is there a way to disable Application Insights from getting included by default in an MVC project in Visual Studio 2017?

    joe

    Friday, September 1, 2017 1:24 PM

All replies

  • User347430248 posted

    Hi joegreen2005,

    you can try to use code like below.

    TelemetryConfiguration.Active.DisableTelemetry = true;
    

    or add code below in ApplicationInsights.Debug.config file.

    <Content Include="ApplicationInsights.config" />
    <None Include="ApplicationInsights.Debug.config">
      <DependentUpon>ApplicationInsights.config</DependentUpon>
    </None>
    <None Include="ApplicationInsights.Release.config">
      <DependentUpon>ApplicationInsights.config</DependentUpon>
    </None>1234567
    

    you can visit link below to get detailed information.

    How to disable the Application Insights while in Debug ?

    Turn off Application Insights for your dev environment

    Regards

    Deepak

    Monday, September 4, 2017 5:35 AM