Certain Application Insights options may prevent Azure Web Apps from starting

  • Sitecore instances hosted in Azure Web Apps cannot be started after enabling any of the following Azure Application Insights options:

    • Show local variables for your application when an exception is thrown.
    • Enable dependency tracking to show compiled SQL command and local variables in a web request.

    The application event log might contain the messages shown below:

    CInstrumentationMethod::Initialize - failed to initialize instrumentation method PID: 10128 hr: 80131375 name: Production Breakpoint Instrumentation Method

    IfFailRet(pNamedPipe->Read((BYTE*)&controlRequest, sizeof(SnapshotHolderControlStruct))) failed in function CSnapshotHolder::HandleNewPipeConnection: -2147024787


    Incoming-calls pipe shutdown.

    The reason for such behavior is that some Azure Application Insights features might not work with obfuscated code.

  • The issue was resolved at Microsoft Azure side by skipping obfuscated assemblies that cannot be processed correctly. The previously described circumstances do not prevent Sitecore solutions hosted in Azure Web Apps from starting anymore.

Applies to:

CMS 9.1 Initial Release - 9.2 Initial Release

CMS 9.1+

September 11, 2019
September 11, 2019

Reference number: