NullReferenceException when logging with ApplicationInsightsBackend

esben's Avatar

esben

14 Feb, 2018 12:15 PM

I have a project that uses the ApplicationInsightsBackend to log various things.

When logging an exception i get another exception (NullReferenceException) with the following stacktrace:
at PostSharp.Patterns.Diagnostics.Backends.ApplicationInsights.ApplicationInsightsLogRecordBuilder.SetExecutionTime(Double executionTime, Boolean isOvertime) at My.Logging.Class

No idea what goes wrong, but if i switch to the ConsoleLoggingBackend everything works (and no thats not an option).

Its version 5.0.44 btw.

  1. Support Staff 1 Posted by PostSharp Techn... on 16 Feb, 2018 10:53 AM

    PostSharp Technologies's Avatar

    Hello,

    this is a bug of ApplicationInsights backend. As a temporary workaround you should disable ExecutionTime logging in your logging profiles.

    (internal issue #15877)

    We will be working on a fix.

    Best,
    Daniel

  2. 2 Posted by esben on 16 Feb, 2018 11:16 AM

    esben's Avatar

    Thx. Ill look forward to the fix :)

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac