I am looking for a VB.Net code to export XML workspcae to Feature Class. I am currently using ArcGIS 10 "Import XML Workspace Document" tool to do the conversion. But to do batch XML workspaces import, I am planning to build a customized script.
I added a form with a button control on it and added the importing code on it with defining the paths for my xml doucment and my file geodatabase. But I got the following error in my Form1.Designer.vb:
Cannot embed interop type 'ESRI.ArcGIS.GeoDatabaseDistributed.IFeatureProgress_Event' because the source interface 'ESRI.ArcGIS.Geodatabase.IFeatureProgress' referenced by its ComEventInterfaceAttribute cannot be found.
You shouldn't be embedding interop types for your ESRI assembly references. However, this is indicative that you have targeted the .NET Framework 4.0 which is not currently supported by ESRI. If you change your project to reference the .NET Framework 3.5 then the error should go away.