Despite following guidance about how to first bind, then initialize a licence for a standalone WinForm uses some arcobjects, I still get the "80040111 ClassFactory cannot supply requested class" error once I call GxDialogClass(). When debugging, the status object beneath comes back as licence checked out - so it successfully binds AND gains a licence. Yet the 80040111 indicates that I haven't.
We are running ArcGIS 10.2.1.
ESRI.ArcGIS.RuntimeManager.Bind(ProductCode.Desktop); IAoInitialize aoInitialize = new AoInitializeClass(); var status = aoInitialize.Initialize(esriLicenseProductCode.esriLicenseProductCodeAdvanced); IGxObjectFilterCollection dialog = new GxDialogClass();