Our web application mysteriously started intermittently throwing this error a couple days ago:
System.TypeInitializationException: The type initializer for 'XXXXXXXXXXXXXX' threw an exception. ---> System.Runtime.InteropServices.COMException: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
at SBStringList.TElStringList..ctor()
We've spoken with the creators of the SBStringList.TElStringList class and it doesn't use COM. I've inspected it in a decompiler and confirmed their assertion.
How can I figure out what COM class the system is trying to create?
Once we start getting this error in our web application, we start to get it almost everywhere. If we clear the temporary ASP.NET files the error goes away until it mysteriously goes away again.