in Education by
I created a brand new Web Application, .NET Full Framework 4.7.2, added Application Insights Snapshot Collector but snapshots are not being pushed to the server. I'm not even getting the Don't see the snapshot? troubleshoot link they mention here. I tested my integration key using a .NET Core app and it works as expected, and I'm even getting logs at %TEMP%\Dumps64 as they mention in that document. I don't see any activity in the %TEMP% folder when I use the .NET Framework app. Exceptions are being pushed to Application Insights, so the integration key is valid and the exceptions are being trapped. These are the packages I added: And this is how my ApplicationInsights.config looks like: <?xml version="1.0" encoding="utf-8"?> [MY INTEGRATION KEY IS HERE] <!-- Extended list of bots: search|spider|crawl|Bot|Monitor|BrowserMob|BingPreview|PagePeeker|WebThumb|URL2PNG|ZooShot|GomezA|Google SketchUp|Read Later|KTXN|KHTE|Keynote|Pingdom|AlwaysOn|zao|borg|oegp|silk|Xenu|zeal|NING|htdig|lycos|slurp|teoma|voila|yahoo|Sogou|CiBra|Nutch|Java|JNLP|Daumoa|Genieo|ichiro|larbin|pompos|Scrapy|snappy|speedy|vortex|favicon|indexer|Riddler|scooter|scraper|scrubby|WhatWeb|WinHTTP|voyager|archiver|Icarus6j|mogimogi|Netvibes|altavista|charlotte|findlinks|Retreiver|TLSProber|WordPress|wsr-agent|http client|Python-urllib|AppEngine-Google|semanticdiscovery|facebookexternalhit|web/snippet|Google-HTTP-Java-Client--> search|spider|crawl|Bot|Monitor|AlwaysOn <!-- Learn more about Application Insights configuration with ApplicationInsights.config here: http://go.microsoft.com/fwlink/?LinkID=513840 Note: If not present, please add <InstrumentationKey>Your Key to the top of this file. --> <!-- The default is true, but you can disable Snapshot Debugging by setting it to false --> true <!-- Snapshot Debugging is usually disabled in developer mode, but you can enable it by setting this to true. --> <!-- DeveloperMode is a property on the active TelemetryChannel. --> true 5 Event 5 Event <!-- Requests to the following hostnames will not be modified by adding correlation headers. Add entries here to exclude additional hostnames. NOTE: this configuration will be lost upon NuGet upgrade. --> core.windows.net core.chinacloudapi.cn core.cloudapi.de core.usgovcloudapi.net Microsoft.Azure.EventHubs Microsoft.Azure.ServiceBus <!-- Use the following syntax here to collect additional performance counters: <Counters> ... PerformanceCounter must be either \CategoryName(InstanceName)\CounterName or \CategoryName\CounterName NOTE: performance counters configuration will be lost upon NuGet upgrade. The following placeholders are supported as InstanceName: ??APP_WIN32_PROC?? - instance name of the application process for Win32 counters. ??APP_W3SVC_PROC?? - instance name of the application IIS worker process for IIS/ASP.NET counters. ??APP_CLR_PROC?? - instance name of the application CLR process for .NET counters. --> <!-- Remove individual fields collected here by adding them to the ApplicationInsighs.HeartbeatProvider with the following syntax: <Add Type="Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.DiagnosticsTelemetryModule, Microsoft.ApplicationInsights"> osType location name offer platformFaultDomain platformUpdateDomain publisher sku version vmId vmSize subscriptionId resourceGroupName placementGroupId tags vmScaleSetName NOTE: exclusions will be lost upon upgrade. --> <!--</Add> --> <!-- Add entries here to filter out additional handlers: NOTE: handler configuration will be lost upon NuGet upgrade. --> Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.RequestDataHttpHandler System.Web.StaticFileHandler System.Web.Handlers.AssemblyResourceLoader System.Web.Optimization.BundleHandler System.Web.Script.Services.ScriptHandlerFactory System.Web.Handlers.TraceHandler System.Web.Services.Discovery.DiscoveryRequestHandler System.Web.HttpDebugHandler <!-- Learn more about Application Insights configuration with ApplicationInsights.config here: http://go.microsoft.com/fwlink/?LinkID=513840 Note: If not present, please add <InstrumentationKey>Your Key to the top of this file. --> <!-- Snapshot Debugging is usually disabled when debugging in Visual Studio, but you can enable it by setting this to true. --> true <!-- Snapshot Debugging is usually disabled in developer mode, but you can enable it by setting this to true. --> <!-- DeveloperMode is a property on the active TelemetryChannel. --> true <!-- How many times we need to see an exception before we ask for snapshots. --> 1 <!-- Other properties are documented at https://aka.ms/pnv0qt --> What am I missing? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Answered this originally in GitHub issue. So I've just spent almost a day trying to make snapshot debugger work in a legacy ASP.NET application and now it finally works! While there's no guarantee that the issue I've encountered is the same as yours was, I believe it is quite possible, because the symptoms I experienced were basically the same. TL;DR: it is . Problem Application Insights probably tries to be resilient to failures by preferring to (silently?) ignore them. And that is what it does to SnapshotCollectorTelemetryProcessor. It simply silently skips it if it fails to load and proceeds happily without it. You can verify this by entering any garbage instead of Microsoft.ApplicationInsights.SnapshotCollector.SnapshotCollectorTelemetryProcessor, Microsoft.ApplicationInsights.SnapshotCollector as Type attribute value in ApplicationInsights.config. And if you check TelemetryConfiguration.Active.DefaultTelemetrySink.TelemetryProcessors, it will simply miss those it failed to load. A sure way to verify that problem is with assembly loading, just add this line somewhere in startup code: var _ = typeof(SnapshotCollectorTelemetryProcessor); That should trigger the error. AFAIK, unlike with class library projects, Web.config in ASP.NET applications cannot benefit from , while NuGet package manager in VS won't do it either once you move to PackageReference (or to "new csproj with globs" like I did). So you have to maintain it somewhat manually. "Fix" As of today, assuming you have these reference versions in your csproj file, you will probably need at least these redirects in Web.config After adding those, I could see the SnapshotUploader directory created on disk and soon after simulating exceptions, some snapshots in the portal. Extra quirks As described above, the configuration by default is wrongly added to the root in ApplicationInsights.config and not under default sink. Additionally, that sink configuration created by Microsoft.ApplicationInsights.Web contains duplicate entries for AdaptiveSamplingTelemetryProcessor, which will probably cause much less telemetry to be sampled than expected in some cases.

Related questions

0 votes
    I've created a medium-sized web-based automation project for a university (VS2010,C#,ASP.NET,SQL Server ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    When Forms Authentication is enabled, once the user provides a username and password it will be validated ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 7, 2022 in Education by JackTerrance
0 votes
    When starting a new ASP.NET application, with the knowledge that at some point in the future it must ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    Details: We are using Keycloak authentication server with Asp.Net WebAPI. Now I need to get the Keycloak ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 4, 2022 in Education by JackTerrance
0 votes
    The company where I work created this application which is core to our business and relies on the web ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 27, 2022 in Education by JackTerrance
0 votes
    How can I mock the database calls to make my application logic been tested without database? JavaScript ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 5, 2022 in Education by JackTerrance
0 votes
    How can I mock the database calls to make my application logic been tested without database? JavaScript ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 5, 2022 in Education by JackTerrance
0 votes
    How can I mock the database calls to make my application logic been tested without database? JavaScript ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 5, 2022 in Education by JackTerrance
0 votes
    How can I mock the database calls to make my application logic been tested without database? JavaScript ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 5, 2022 in Education by JackTerrance
0 votes
    I'd like to use two view engines in my asp.net mvc web application. The first one is the Brail ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 4, 2022 in Education by JackTerrance
0 votes
    We create new sites in IIS 6 (Windows Server 2003) using IIS Manager. When these sites are created ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 27, 2022 in Education by JackTerrance
0 votes
    I have a AWS API Gateway, deployed using SAM template. The API request comes to the Proxy Lambda Function ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    I'm building an app using Visual Studio 2010. I can run my asp.net website from my computer (by ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 4, 2022 in Education by JackTerrance
0 votes
    I recently began working on a project which has many gridviews on a single page. During creation of a ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 10, 2022 in Education by JackTerrance
0 votes
    I recently began working on a project which has many gridviews on a single page. During creation of a ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 10, 2022 in Education by JackTerrance
...