
ASP.NET Error and Performance Monitoring
Actionable insights to solve ASP.NET errors.
Getting Started is Simple
Add the Sentry dependency:
Install-Package Sentry.AspNet
You configure the SDK in the Global.asax.cs:
using System; using System.Web; using Sentry; using Sentry.AspNet; using Sentry.EntityFramework; // if you also installed Sentry.EntityFramework using Sentry.Extensibility; public class MvcApplication : HttpApplication { private IDisposable _sentry; protected void Application_Start() { // Initialize Sentry to capture AppDomain unhandled exceptions and more. _sentry = SentrySdk.Init(o => { o.AddAspNet(); o.Dsn = "https://<key>@sentry.io/<project>"; // When configuring for the first time, to see what the SDK is doing: o.Debug = true; // Set TracesSampleRate to 1.0 to capture 100% // of transactions for performance monitoring. // We recommend adjusting this value in production o.TracesSampleRate = 1.0; // if you also installed the Sentry.EntityFramework package o.AddEntityFramework(); }); } protected void Application_Error() { var exception = Server.GetLastError(); SentrySdk.CaptureException(exception); } protected void Application_BeginRequest() { Context.StartSentryTransaction(); } protected void Application_EndRequest() { Context.FinishSentryTransaction(); } protected void Application_End() { // Flushes out events before shutting down. _sentry?.Dispose(); } }
Check our documentation for the latest instructions.
See all platformsMore than 150K Organizations Trust Sentry with Their Application Monitoring

ASP.NET Error Monitoring with Complete Stack Traces
See ASP.NET stack trace details like filename and line number so you never have to guess. Filter and group ASP.NET exceptions intuitively to eliminate noise. Monitor errors at scale without impacting throughput in production.

ASP.NET Performance Monitoring
Quickly identify ASP.NET performance issues before they become downtime with performance monitoring. View the entire end-to-end distributed trace to see the exact, poor-performing API call and surface any related errors.

Fill In The Blanks About ASP.NET Errors
Expose the important events that led to each ASP.NET exception: debug logs, network requests, database queries, past errors.

See the Full Picture of Any ASP.NET Exception
With Sentry's exceptional exception handling in ASP.NET, you can triage quickly based on specific parameters like HTTP request, workflow stage, and hostname for each issue. Set custom tags to recreate the error environment relevant to your app, business concerns, and users.

Resolve ASP.NET errors with max efficiency, not max effort
- Improve workflow with a full view of releases so you can mark errors as resolved and prioritize live issues.
- Learn in which version a bug first appeared, merge duplicates, and know if things regress in a future release.
- Add commit data to automatically suggest an owner of each ASP.NETerror and instantly send deploy emails.
”Sentry's high-quality tooling helps Disney+ maintain high-quality service to its tens of millions of global subscribers.”
Is your data secure? You better believe it.
Just look at all the high-quality security features all accounts get, regardless of plan.
- Two-Factor Auth
- Single Sign-On support
- Organization audit log
- SOC 2 Type II and ISO 27001 certified
- HIPAA attestation
- PII data scrubbing
- SSL encryption
- Data Processing Addendum (includes latest EU SCCs)
- Privacy Shield certified