msadeh

Can't connect to Personal SDE with ArcGIS 10 from Engine application

Discussion created by msadeh on May 26, 2010
Latest reply on Aug 23, 2010 by bixb0012
Hey,

I'm working with ArcGIS 10 Pre-Release and I'm trying to create a connection to personal SDE workspace. I'm able to do it with in ArcMap session but not inside an Engine application.

This is the basic code I'm using in both places:

ESRI.ArcGIS.esriSystem.IPropertySet propertySet = new ESRI.ArcGIS.esriSystem.PropertySetClass();
propertySet.SetProperty("SERVER", Server);
propertySet.SetProperty("INSTANCE", Instance);
propertySet.SetProperty("DATABASE", Database);
propertySet.SetProperty("VERSION", Version);
propertySet.SetProperty("AUTHENTICATION_MODE", AuthenticationMode);

IWorkspaceFactory workspaceFactory = new ESRI.ArcGIS.DataSourcesGDB.SdeWorkspaceFactoryClass();
IWorkspace workspace = workspaceFactory.Open(propertySet, 0);

and this is the error message with the attachment:
"Server library could not be loaded"

Thanks,
Mano

Attachments

Outcomes