System.Runtime.InteropServices.SEHException thrown when browsing Sitecore xConnect site

  • Using the Stackify's Prefix profiler along with Sitecore XP 9.3 Initial release might cause an xConnect site to crash. An unhandled exception is thrown when a Sitecore XP instance and a Stackify application are installed on the same computer or virtual machine. The following exception can be found in the browser and/or xConnect log:

    [Error] XConnect Web Application Error: "System.ApplicationException: Exception trying to initialize Service Collection and Provider for WebAPI Dependency Resolver, Inner Exception: External component has thrown an exception. ---> System.Runtime.InteropServices.SEHException: External component has thrown an exception.
       at ‫‍‪‪‌‎‫‎‎‌‍‪‏‎‏‪‌‎‪.(‎‌‎‎‍‪‪‏‏‌‫‪‍ , XmlNode )
       at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
       at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
       at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
       at #D2VC^\\\]ZrjQ\]h~{\\kwiM\,}`\".‫‎‎‌‎‏‌‎‪‪‍‏‌‎(‪‌‏‪‌‎‎‌‍‍‫‏‫‏‏‍‏‎ )
       at ‪‌‏‪‌‎‎‌‍‍‫‏‫‏‏‍‏‎..ctor(String )
       at ‍‎‍‎‪‏‏‌‪‎‌‍‪..ctor(String )
       at Sitecore.XConnect.Configuration.Extensions.InitializeLicenseCheck(IServiceCollection collection, String licenseFileOrXml)
       at Sitecore.XConnect.Configuration.Extensions.UseXConnectServiceInitializationConfiguration(IServiceCollection collection, IConfiguration configuration, String[] configurationSectionNames, String initializationSectionName, Boolean validateConfiguration)
       at Sitecore.XConnect.Web.WebApiConfig.ConfigureServices(HttpConfiguration config)
       --- End of inner exception stack trace ---
       at Sitecore.XConnect.Web.WebApiConfig.ConfigureServices(HttpConfiguration config)
       at System.Web.Http.GlobalConfiguration.Configure(Action`1 configurationCallback)
       at Sitecore.XConnect.Web.Global.Application_Start(Object sender, EventArgs e)"
  • To resolve the issue, disable the Stackify Prefix profiler as follows:
    1. Right-click the Stackify Prefix tray icon.
    2. Click "Disable .NET Profiler" in the menu and confirm your actions.

Applies to:

CMS 9.3 Initial Release

July 01, 2020
July 01, 2020

Reference number:

410117