IWorkspaceFactory factory = new FileGDBWorkspaceFactoryClass();
Unable to cast object of type System.__ComObject to type ESRI.ArcGIS.DataSourcesGDB.FileGDBWorkspaceFactoryClass
Yep! Thank you. this helped. But I still wonder most of my projects. this code won't break.
IWorkspaceFactory factory = new FileGDBWorkspaceFactoryClass(); <SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
But for my current project it breaks. And Neil Clemmons answer solves the problem.
Thank you Neil - you've helped me on and off for 20 years now!!
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.