Select to view content in your preferred language

AccessWorkspaceFactoryClass inside of SOE at 10.1 fails?

1180
2
Jump to solution
10-30-2012 12:24 PM
JeffMachamer
Occasional Contributor
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
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
nicogis
MVP Alum
ArcGIS 10.1 for Server no longer supports Microsoft Access-based personal geodatabases (.mdb) due to lack of scalability in the 64-bit application environment. Personal geodatabases continue to be supported in ArcGIS for Desktop.

View solution in original post

0 Kudos
2 Replies
nicogis
MVP Alum
ArcGIS 10.1 for Server no longer supports Microsoft Access-based personal geodatabases (.mdb) due to lack of scalability in the 64-bit application environment. Personal geodatabases continue to be supported in ArcGIS for Desktop.
0 Kudos
JeffMachamer
Occasional Contributor
Thanks,

I thought I had read somewhere that it was not supported, but then couldn't find that info.  Since I could see them in Desktop I made the assumption that it would work in Server as well.
0 Kudos