Hello,For the following code.... Dim pWorkspaceName As ESRI.ArcGIS.Geodatabase.IWorkspaceName
Dim pWorkspaceFactory As ESRI.ArcGIS.Geodatabase.IWorkspaceFactory
'Set up new database
pWorkspaceFactory = New ESRI.ArcGIS.DataSourcesGDB.AccessWorkspaceFactory
pWorkspaceName = pWorkspaceFactory.Create("C:\Temp", "foo.mdb", Nothing, 0)
I get the error...System.Runtime.InteropServices.COMException was caught
ErrorCode=-2147220973
Message=Exception from HRESULT: 0x80040213
Source=ESRI.ArcGIS.DataSourcesGDB
StackTrace:
at ESRI.ArcGIS.DataSourcesGDB.AccessWorkspaceFactoryClass.IWorkspaceFactory2_Create(String parentDirectory, String Name, IPropertySet ConnectionProperties, Int32 hWnd)
I am using vs2010 and ArcMap 10. The code is in a windows form. The form is called from a ICommand class. My code was converted from VB6 and ESRI 9.x.When I am debugging, this line and step into itpWorkspaceFactory = New ESRI.ArcGIS.DataSourcesGDB.AccessWorkspaceFactoryIt goes to the Deactivate subroutine of the Form code.Thanks for your help!