This is a fairly obscure problem but hoping someone will have seen it before or have an idea of why it would occurs.
I've created a C#, WPF application which uses interop COM dlls to query data from another application. I'm using async & await (with Task.Run) to query data without blocking the UI thread. Up till recently this worked fine on any machine I deployed my app to. Now however I'm receiving an error message:
Error creating an instance of the COM component with CLSID {......} from the IClassFactory failed due to the following error: 800a01e Exception from HRESULT 0x800A01AE
A couple of points to note:
- This error only occurs on other machines (i.e It Works On My Machine)
- The error does not occur if I remove async and await (i.e. block the UI thread)
- I have older versions of my app which work fine on other machines. It's only newly compiled versions that have stopped working.
I'm not sure exactly when this error started to occur but I did recently install VS2017.