Here is my minimal example producing the problem:
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using Excel = Microsoft.Office.Interop.Excel;
class Program
{
static void Main(string[] args)
{
Task.Run(() =>
{
Excel.Application app = new Excel.Application();
if (app != null)
{
app.Quit();
Marshal.FinalReleaseComObject(app);
app = null;
}
});
}
}
This results in the following exception:

The last part in Japanese says the "EventSetInformation" of DLL advapi32.dll entry point cannot be found.
I'm having difficulty understanding what is going on. Basically why is this exception being thrown and what it is trying to tell me?