I am trying to convert excel to ITable in ArcGIS (10.2.2) SOE. I am using the below code for converting.
Type factoryType = Type.GetTypeFromProgID( "esriDataSourcesOleDB.ExcelWorkspaceFactory");
IWorkspaceFactory workspaceFactory = (IWorkspaceFactory)Activator.CreateInstance(factoryType);
IWorkspace workspace = workspaceFactory.OpenFromFile(@E:\apps\DevelopmentArea\test.xls, 0);
IFeatureWorkspace featureWorkspace = (IFeatureWorkspace)workspace;
ITable table = featureWorkspace.OpenTable("Sheet1$");
I am getting the error in OpenfromFile method , arcgis server and the SOE projects are in same system.
Error message : Exception from HRESULT: 0x80040213
I checked in the net i could find any help. Kindly provide your suggestion