Last post Sep 04, 2017 05:35 AM by Deepak Panchal
Member
58 Points
455 Posts
Sep 01, 2017 01:24 PM|joegreen2005|LINK
Hi,
Is there a way to disable Application Insights from getting included by default in an MVC project in Visual Studio 2017?
joe
Contributor
2990 Points
1210 Posts
Sep 04, 2017 05:35 AM|Deepak Panchal|LINK
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
Member
58 Points
455 Posts
Application Insights
Sep 01, 2017 01:24 PM|joegreen2005|LINK
Hi,
Is there a way to disable Application Insights from getting included by default in an MVC project in Visual Studio 2017?
joe
Contributor
2990 Points
1210 Posts
Re: Application Insights
Sep 04, 2017 05:35 AM|Deepak Panchal|LINK
Hi joegreen2005,
you can try to use code like below.
or add code below in ApplicationInsights.Debug.config file.
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
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.