I am having this issue with 10.7. I get an error, but no error really explaining why it is erroring. This worked fine in 9.3. Please help me get past this.
Here is my code snippet:
IWorkspaceFactory pFact;
IWorkspace pWorkspace;
IFeatureWorkspace pFeatws;
// Create pTable from .csv file...
pFact = new TextFileWorkspaceFactory();
pWorkspace = pFact.OpenFromFile(LocalFolder, 0); -- LocalFolder is where CSV files are located
pFeatws = (IFeatureWorkspace)pWorkspace;
pTable = pFeatws.OpenTable(CSVFile);