Skip to content
Documentation
Updated 7 minutes to read
Markdown

Nodinite v7 includes a specialized exception viewer that displays .NET exception chains directly in Log Views. When developers log exceptions from .NET applications, Azure Functions, or frameworks like Serilog, the exception viewer automatically parses and formats the exception data for faster troubleshooting.

What you'll learn on this page:

✅ View exception chains - See the complete failure path from root cause to final error
✅ Navigate stack traces - Inspect formatted stack traces with preserved line breaks
✅ Drill into inner exceptions - Understand nested exception relationships
✅ Extract exception data - Use formulas to create searchable fields from exception properties

Search a Log View for a failed order, open the event's Details and its Context Values, and drill from an InvalidOperationException into its inner SqlException, animated walkthrough (7.12)
Animated walkthrough: in a Log View, search for order ORD-10044, click Show Details, open Context Values, and open the exception and its Inner Exception. Each level shows its Message, Class Name, Source, and Stack Trace; the root cause, a SocketException, is one level deeper.

The exception viewer parses .NET exception JSON structures and presents them in an organized, readable format. This eliminates the need to manually parse JSON or decode base64-encoded payloads.

graph TD A["fa:fa-exclamation-triangle Application Exception"] --> B["fa:fa-file-code Log Event Created"] B --> C["fa:fa-database Stored in Log Database"] C --> D["fa:fa-search Open in Log View"] D --> E["fa:fa-eye Exception Viewer Displays"] E --> F1["fa:fa-chain Exception Chain"] E --> F2["fa:fa-list Stack Traces"] E --> F3["fa:fa-sitemap Inner Exceptions"] E --> F4["fa:fa-info-circle Exception Properties"] style E fill:#2678BD style F1 fill:#93d16d style F2 fill:#93d16d style F3 fill:#93d16d style F4 fill:#93d16d

Diagram showing how exception data flows from application to the Nodinite exception viewer.

When you open a Log Event with exception data in Nodinite v7 Log Views, click Show Details and open the Context Values tab. The ExtendedProperties/1.0#Exception row shows the exception viewer:

  • Exception chain visualization - The outer exception is a card titled ClassName: Message. Each inner exception is a card of its own, nested to any depth
  • Known fields first - Opened, a card lists Message, Inner Exception, Class Name, Source, and Stack Trace (and Exception Method, Line Number, Data, and Errors when present), with display names
  • Other fields - Everything else, such as HResult and error codes, is under Other fields
  • Stack trace formatting - Line breaks and indentation preserved for readability
  • Copy and raw view - Each value has a copy button, and View Raw Exception shows the JSON, indented. The < next to the key widens the exception over the full table
  • Contextual information - Order IDs, retry attempts, and environment details from Context properties

The exception viewer in Context Values, with System.InvalidOperationException open, its Inner Exception System.Data.SqlClient.SqlException open, Class Name, Source, Stack Trace, Other fields, and View Raw Exception (7.12)
The exception viewer in an event's Context Values: the outer exception and its inner SqlException opened, the SocketException below them still closed.

A common scenario: An Azure Function attempts to process an order, encounters a database connection timeout, which is caused by a DNS resolution failure.

Exception chain displayed in the viewer:

  1. InvalidOperationException (outermost) - "Failed to process order ORD-12345 after 3 retry attempts"
  2. SqlException (middle) - "Network-related error connecting to SQL Server"
  3. SocketException (innermost/root cause) - "No such host is known (sql-prod-east.database.windows.net)"

The exception viewer shows all three levels, allowing you to quickly identify that the root cause is a DNS resolution failure, not a database or application logic error.

Each exception level in the chain shows these fields. The viewer uses display names; the JSON keys, which you use in formulas, are in the second column:

Viewer label JSON key Description Example
Message Message Human-readable error description "A network-related or instance-specific error occurred..."
Inner Exception InnerException Nested exception (closer to the root cause) SocketException details
Class Name ClassName .NET exception type System.Data.SqlClient.SqlException
Source Source Component that threw the exception "Core .Net SqlClient Data Provider"
Stack Trace StackTraceString Call stack showing code path File names, method names, line numbers
Under Other fields HResult Win32/COM error code -2146232060

Additional properties may appear under Other fields, depending on exception type:

  • SqlException: Number, State, Class, Server, ErrorCode
  • SocketException: NativeErrorCode
  • WebException: Status, Response

You can create Search Fields with formula extraction to make exception properties searchable. This enables filtering and reporting on specific exception types or error codes.

The .. in these paths searches every level of the chain, so a formula returns one value per level that has the field.

Extract the exception messages (every level: three values for a three-level chain):

JsonPath('..Message', Context('ExtendedProperties/1.0#Exception'))

Extract the exception class names (every level):

JsonPath('..ClassName', Context('ExtendedProperties/1.0#Exception'))

Extract the SQL error code (from the SqlException in the chain, for example -2146232060; nothing for a chain without one):

JsonPath('..ErrorCode', Context('ExtendedProperties/1.0#Exception'))

Extract the root cause (the message of the exception that has no inner exception, at any depth):

JsonPath('$..[?(@.InnerException == null)].Message', Context('ExtendedProperties/1.0#Exception'))

Function names are not case-sensitive: JsonPath, jsonPath, and jsonpath all work.

When .NET applications use Serilog with Nodinite sinks, exceptions are automatically captured when you call .Error(exception, message). The exception object is serialized to JSON and stored in Context["ExtendedProperties/1.0#Exception"].

Example Serilog code:

try
{
await ProcessOrderAsync(orderId);
}
catch (Exception ex)
{
_logger.Error(ex, "Failed to process order {OrderId}", orderId);
// Exception is automatically sent to Nodinite with full chain and stack trace
}

The Nodinite exception viewer automatically detects this format and displays the exception chain, stack traces, and all properties.

  • Focus on the outermost exception message - This typically contains the business-friendly error description
  • Check Context properties - Look for Order IDs, Transaction IDs, or other business data in the Context section
  • Note the timestamp - Correlate with business events or system maintenance windows
  • Add comments - Document investigation findings using the Comments feature
  • Start with the innermost exception - This is usually the root cause
  • Inspect stack traces - Look for line numbers and file names to pinpoint code locations
  • Check HResult and error codes - These identify specific Win32 or COM errors
  • Compare exception chains - Look for patterns across multiple failed Log Events
  • Extract exception data - Create custom Search Fields to track specific error types
  • Monitor exception trends - Use Search Fields to count exceptions by type over time
  • Set up alerts - Create Monitor Views that trigger when specific exception types appear
  • Document known issues - Add Comments with links to known issues or workarounds
  • Track resolution time - Use timestamps and comments to measure time-to-resolution

If you don't see exception details in the exception viewer:

  • Check Context properties - Look for ExtendedProperties/1.0#Exception in the Context Values tab. The viewer reads only this property
  • Exception only in the Body - The viewer doesn't parse the message body. An exception logged only in the Body shows with View message body, as plain text or JSON
  • Verify JSON format - Exception data must be valid JSON with .NET exception structure (ClassName, Message, StackTraceString)
  • Check Serilog configuration - Ensure the Serilog sink is configured to capture exceptions (see Serilog)

Add Comments to Log Events - Document investigation findings directly on Log Event records
Create Custom Search Fields - Extract exception data for filtering and reporting

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...