<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Open Personal Geodatabase using ArcGIS Server license in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/open-personal-geodatabase-using-arcgis-server/m-p/1201195#M20510</link>
    <description>&lt;P&gt;In the &lt;STRONG&gt;ArcObjects 10.8.1 (Java)&lt;/STRONG&gt; code, initialized &lt;STRONG&gt;ArcGIS Server&lt;/STRONG&gt; license.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;_aoInitialize.initialize(esriLicenseProductCode.esriLicenseProductCodeArcServer);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to open a &lt;STRONG&gt;Personal Geodatabase&lt;/STRONG&gt; using the below Esri provided code snippet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;[Java]
//For example, pathToFile= "C:\\myData\\mypGDB.mdb".
static IWorkspace openFromFile_pGDB_Workspace(String pathToFile)throws Exception{
    IWorkspaceFactory workspaceFactory = new AccessWorkspaceFactory();
    return workspaceFactory.openFromFile(pathToFile, 0);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Getting an exception as below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;AutomationException: 0x80040154 - Class not registered
	at com.esri.arcgis.interop.NativeObjRef.init(Unknown Source)
	at com.esri.arcgis.interop.NativeObjRef.&amp;lt;init&amp;gt;(Unknown Source)
	at com.esri.arcgis.interop.Dispatch.createDispatch(Unknown Source)
	at com.esri.arcgis.interop.Dispatch.&amp;lt;init&amp;gt;(Unknown Source)
	at com.esri.arcgis.geodatabase.IWorkspaceFactoryProxy.&amp;lt;init&amp;gt;(Unknown Source)
	at com.esri.arcgis.datasourcesGDB.AccessWorkspaceFactory.&amp;lt;init&amp;gt;(Unknown Source)
	at com.esri.arcgis.datasourcesGDB.AccessWorkspaceFactory.&amp;lt;init&amp;gt;(Unknown Source)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where as, the below code for &lt;STRONG&gt;File Geodatabase&lt;/STRONG&gt;&amp;nbsp;was &lt;STRONG&gt;WORKING FINE&lt;/STRONG&gt; with out any issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;[Java]
//For example, pathToFile= "C:\\myData\\myfGDB.gdb".
static IWorkspace openFromFile_fGDB_Workspace(String pathToFile)throws Exception{
    IWorkspaceFactory workspaceFactory = new FileGDBWorkspaceFactory();
    return workspaceFactory.openFromFile(pathToFile, 0);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per the API documentation, &lt;STRONG&gt;AccessWorkspaceFactory&lt;/STRONG&gt; is available with &lt;STRONG&gt;ArcGIS Server&lt;/STRONG&gt; too. Then what could be the reason for exception?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ranga_Tolapi_0-1660125008607.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48225i32B6DF16844C5E7E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ranga_Tolapi_0-1660125008607.png" alt="Ranga_Tolapi_0-1660125008607.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone throw some light here.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Aug 2022 09:52:42 GMT</pubDate>
    <dc:creator>Ranga_Tolapi</dc:creator>
    <dc:date>2022-08-10T09:52:42Z</dc:date>
    <item>
      <title>Open Personal Geodatabase using ArcGIS Server license</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/open-personal-geodatabase-using-arcgis-server/m-p/1201195#M20510</link>
      <description>&lt;P&gt;In the &lt;STRONG&gt;ArcObjects 10.8.1 (Java)&lt;/STRONG&gt; code, initialized &lt;STRONG&gt;ArcGIS Server&lt;/STRONG&gt; license.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;_aoInitialize.initialize(esriLicenseProductCode.esriLicenseProductCodeArcServer);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to open a &lt;STRONG&gt;Personal Geodatabase&lt;/STRONG&gt; using the below Esri provided code snippet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;[Java]
//For example, pathToFile= "C:\\myData\\mypGDB.mdb".
static IWorkspace openFromFile_pGDB_Workspace(String pathToFile)throws Exception{
    IWorkspaceFactory workspaceFactory = new AccessWorkspaceFactory();
    return workspaceFactory.openFromFile(pathToFile, 0);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Getting an exception as below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;AutomationException: 0x80040154 - Class not registered
	at com.esri.arcgis.interop.NativeObjRef.init(Unknown Source)
	at com.esri.arcgis.interop.NativeObjRef.&amp;lt;init&amp;gt;(Unknown Source)
	at com.esri.arcgis.interop.Dispatch.createDispatch(Unknown Source)
	at com.esri.arcgis.interop.Dispatch.&amp;lt;init&amp;gt;(Unknown Source)
	at com.esri.arcgis.geodatabase.IWorkspaceFactoryProxy.&amp;lt;init&amp;gt;(Unknown Source)
	at com.esri.arcgis.datasourcesGDB.AccessWorkspaceFactory.&amp;lt;init&amp;gt;(Unknown Source)
	at com.esri.arcgis.datasourcesGDB.AccessWorkspaceFactory.&amp;lt;init&amp;gt;(Unknown Source)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where as, the below code for &lt;STRONG&gt;File Geodatabase&lt;/STRONG&gt;&amp;nbsp;was &lt;STRONG&gt;WORKING FINE&lt;/STRONG&gt; with out any issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;[Java]
//For example, pathToFile= "C:\\myData\\myfGDB.gdb".
static IWorkspace openFromFile_fGDB_Workspace(String pathToFile)throws Exception{
    IWorkspaceFactory workspaceFactory = new FileGDBWorkspaceFactory();
    return workspaceFactory.openFromFile(pathToFile, 0);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per the API documentation, &lt;STRONG&gt;AccessWorkspaceFactory&lt;/STRONG&gt; is available with &lt;STRONG&gt;ArcGIS Server&lt;/STRONG&gt; too. Then what could be the reason for exception?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ranga_Tolapi_0-1660125008607.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48225i32B6DF16844C5E7E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ranga_Tolapi_0-1660125008607.png" alt="Ranga_Tolapi_0-1660125008607.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone throw some light here.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 09:52:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/open-personal-geodatabase-using-arcgis-server/m-p/1201195#M20510</guid>
      <dc:creator>Ranga_Tolapi</dc:creator>
      <dc:date>2022-08-10T09:52:42Z</dc:date>
    </item>
  </channel>
</rss>

