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!!
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.