NullReferenceException when logging with ApplicationInsightsBackend

Esben Bach's Avatar

Esben Bach

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 Bach on 16 Feb, 2018 11:16 AM

    Esben Bach's Avatar

    Thx. Ill look forward to the fix :)

  3. Support Staff 3 Posted by PostSharp Techn... on 28 Feb, 2018 09:02 AM

    PostSharp Technologies's Avatar

    Hello,

    We're closing the ticket for now as the bug has been internally filed as issue #15877. We will contact you as soon as the bug fix has been released.

    For more details on our support policies and prioritization of bug fixes, please visit https://www.postsharp.net/support/policies

    PostSharp Team

  4. PostSharp Technologies closed this discussion on 28 Feb, 2018 09:02 AM.

  5. PostSharp Technologies re-opened this discussion on 12 Mar, 2018 05:55 PM

  6. Support Staff 4 Posted by PostSharp Techn... on 12 Mar, 2018 05:55 PM

    PostSharp Technologies's Avatar

    Hello,

    the bug #15877 has been fixed in the current release of PostSharp 5.0.48.
    Should you need further help with this issue, don't hesitate to re-open this discussion.

    Best regards,
    Alex

  7. PostSharp Technologies closed this discussion on 12 Mar, 2018 05:55 PM.

Comments are currently closed for this discussion. You can start a new one.

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