Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm accessing a file geodatabase through a mapped network drive pointing to a unix machine running Samba.

When I start the app from within VS2010, I get a COM exception when I attempt to open the file Gdb. No exception is thrown when not running in the debugger.

I'm using the recommended method of opening the gdb (via Activator.CreateInstance):

public static IWorkspace FileGdbWorkspaceFromPropertySet(String database)
{
   IPropertySet propertySet = new PropertySetClass();
   propertySet.SetProperty("DATABASE", database);
  Type factoryType = Type.GetTypeFromProgID(
    "esriDataSourcesGDB.FileGDBWorkspaceFactory");
  IWorkspaceFactory workspaceFactory = (IWorkspaceFactory)
    Activator.CreateInstance(factoryType);
  return workspaceFactory.Open(propertySet, 0);
}

If I copy the same file gdb to the local windows machine, I can access it without any exception.

Has anyone ever run into this issue?

I know very little about Samba - is there something that needs to be configured to make it more file gdb friendly?

share|improve this question
    
Did you try running VS2010 in Administrator mode. Seems like a domain permissions issue honestly. I've had trouble instantiating on a different thread, but that's obviously not your issue. –  patrick Mar 27 '12 at 16:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.