On a clean 9.2 installation, after I make a change in the
/bin folder or change something in the
web.config, Sitecore crashes with a Just-In-Time exception, asking me if I want to attach a debugger to the crashing process. If I select yes, Visual Studio loads, but I am unable to attach a debugger, since the process has crashed. Afterwards, the site loads up just fine. The error only happens on the initial load, after a deploy.
In the event log I see the following:
Faulting application name: w3wp.exe, version: 10.0.17763.1, time stamp: 0xcfdb13d8 Faulting module name: clr.dll, version: 4.7.3416.0, time stamp: 0x5cabfc63 Exception code: 0xc0000005 Fault offset: 0x000000000012108c Faulting process id: 0x5504 Faulting application start time: 0x01d5513384b4dd78 Faulting application path: c:\windows\system32\inetsrv\w3wp.exe Faulting module path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll Report Id: 52f36235-197b-4edd-99c3-43947487aadd Faulting package full name: Faulting package-relative application ID:
And another line with:
Application: w3wp.exe Framework Version: v4.0.30319 Description: The process was terminated due to an internal error in the .NET Runtime at IP 00007FFB148A108C (00007FFB14780000) with exit code 80131506.
What I tried:
I found the following blogpost which describes my exact problem: https://medium.com/@markgibbons25/sitecore-crashing-on-startup-with-internal-error-in-the-net-runtime-be5831e94b6e
However, the solution described does not work in my scenario. I double- and triple-checked that I do not have any duplicate assembly redirects.
If I do a deployment and then attach a VS debugger, I can see that the code throws an
I tried to configure DebugDiag to collect a dump, but none of my crash rules (1 for the application pool, 1 for the w3wp process) are ever hit.