initializeArcGISLicenses();
SdeWorkspaceFactory sdeFact = new SdeWorkspaceFactory();
// Create a PropertySet object that will contain all of the
// SDE connection parameters
PropertySet propSet = new PropertySet();
// Populate the property set with the connection parameters
propSet.setProperty("SERVER", server);
propSet.setProperty("INSTANCE", instance);
propSet.setProperty("DATABASE", database);
propSet.setProperty("USER", user);
propSet.setProperty("PASSWORD", password);
propSet.setProperty("VERSION", "sde.DEFAULT");
** IWorkspace w= sdeFact.open(propSet, 0); **
// Open the ArcSDE workspace using the connection PropertySet
Workspace ws = new Workspace(w);
这行 IWorkspace w= sdeFact.open(propSet, 0);报错
AutomationException: 0x80041501 - Operation Failed in 'esriDataSourcesGDB.SdeWorkspace.1'