AnsweredAssumed Answered

AccessWorkspaceFactoryClass inside of SOE at 10.1 fails?

Question asked by jmachamer on Oct 30, 2012
Latest reply on Oct 30, 2012 by jmachamer
Has anyone successfully used an AccessWorkspaceFactory inside of an SOE at 10.1?  When ever I try to create an instance I receive the error:
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {DD48C96A-D92A-11D1-AA81-00C04FA33A15} failed due to the following error: 80040154.

That error is from the following line:
IWorkspaceFactory tempFactory =  new ESRI.ArcGIS.DataSourcesGDB.AccessWorkspaceFactoryClass();
I get the same error with:  (On the CreateInstance call, GetType works fine.)
Type type = Type.GetTypeFromProgID("esriDataSourcesGDB.AccessWorkspaceFactory");
tempFactory = (IWorkspaceFactory)Activator.CreateInstance(type);

This leads me to believe that I am perhaps missing a reference that the DataSourcesGDB assembly needs, but I've added all of the ESRI references without success.

I've gotten it to work using FileGDBWorkspaceFactoryClass which is from the same assembly, so I'm uncertain what the issue is.

Thanks,

Jeff Machamer
3-GIS

Outcomes