I working on asp.net core 7 blazor Publish on iis. I get some error on my application related to connection and exceptions related to database exist or not
so it not catched by logging application so what another tool can give me recognized or detected issues and reasons by details
Prasad RaveendranPosted Sep 3, 2023, 6:55 PM
check the EventViewer, it will log all issues related to Applications
Abhishek YadavPosted Aug 31, 2023, 7:41 AM
There are several tools that can help you diagnose and troubleshoot issues in your ASP.NET Core Blazor application.
Application Insights: Application Insights is a performance monitoring and application diagnostics service provided by Microsoft. It can give you detailed insights into the performance, availability, and usage of your application. It can track exceptions, performance bottlenecks, and provide detailed logs for your application.
Elmah: Elmah is a popular open-source logging library for ASP.NET. It can capture unhandled exceptions and log them to various sources like SQL Server, XML files, or email. It provides a web interface to view the logged exceptions, making it easier to identify issues.
Serilog: Serilog is a flexible and highly extensible logging framework for .NET. It allows you to log to multiple targets, including file, console, and database. By configuring Serilog to log detailed information about exceptions and database connectivity, you can get more insights into the issues in your application.
MiniProfiler: MiniProfiler is a lightweight profiling library for ASP.NET Core. It provides detailed timing and performance information about your application, including database queries. It can help you identify slow queries or connectivity issues with the database.
SQL Server Profiler: If your application is using SQL Server as the backend database, SQL Server Profiler can be a valuable tool. It allows you to trace and monitor SQL Server activities, including queries, stored procedures, and exceptions. You can capture and analyze the database-related issues in real-time.
By using one or a combination of these tools, you can effectively monitor and troubleshoot issues in your ASP.NET Core Blazor application related to connection and exceptions.