I have a VSTO Excel template project in VS2017. I got this error when running the code.
System.Runtime.InteropServices.COMException occurred HResult=0x800A0