<?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 Re: Issue while using &amp;quot;FileGDBWorkspaceFactory&amp;quot;  in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/issue-while-using-quot-filegdbworkspacefactory/m-p/630898#M17019</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not to ask the obvious, are the &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;filename&lt;/SPAN&gt; and &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;hWnd&lt;/SPAN&gt; you are passing both valid/correct?&amp;nbsp; What specifically are you passing as &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;path&lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, have you checked out the following HRESULT E_FAIL threads on GeoNet:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/message/370208?commentID=370208?sr=search&amp;amp;searchId=8dccb3e3-41a3-4177-b1e1-099b65bedcfd&amp;amp;searchIndex=5#comment-370208"&gt;https://community.esri.com/message/370208?commentID=370208?sr=search&amp;amp;searchId=8dccb3e3-41a3-4177-b1e1-099b65bedcfd&amp;amp;searchIndex=5#comment-370208&lt;/A&gt;&lt;A&gt;‌&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/message/591142?commentID=591142?sr=search&amp;amp;searchId=3f3939c6-0e5b-424b-8e54-8f2e041d4a66&amp;amp;searchIndex=2#comment-591142"&gt;https://community.esri.com/message/591142?commentID=591142?sr=search&amp;amp;searchId=3f3939c6-0e5b-424b-8e54-8f2e041d4a66&amp;amp;searchIndex=2#comment-591142&lt;/A&gt;&lt;A&gt;‌&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems network-path data and illegal characters can cause the error in certain situations.&amp;nbsp; Also, sometimes it isn't directly related to the code but corrupted caches in Visual Studio, so you might want to Google around for solutions beyond ArcGIS code changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Dec 2016 15:16:26 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2016-12-23T15:16:26Z</dc:date>
    <item>
      <title>Issue while using "FileGDBWorkspaceFactory"</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/issue-while-using-quot-filegdbworkspacefactory/m-p/630897#M17018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IWorkspaceFactory factory= new FileGDBWorkspaceFactory();&lt;BR /&gt;IWorkspace workspace= &lt;SPAN&gt;factory&lt;/SPAN&gt;.OpenFromFile(path, 0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above code causes throws the below error. "Error HRESULT E_FAIL has been returned from a call to a COM component."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried the below too. But it didn't work.&lt;/P&gt;&lt;PRE class="" style="background-color: #ffffff; font-size: 11.52px; margin: 0.6em 0.5em;"&gt;&lt;CODE style="font-size: 11.52px; margin: 0.6em 0.5em;"&gt;Type factoryType=Type.GetTypeFromProgID(&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="" style="color: maroon;"&gt;"esriDataSourcesGDB.FileGDBWorkspaceFactory"&lt;/SPAN&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IWorkspaceFactory workspaceFactory=(IWorkspaceFactory)Activator.CreateInstance&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (factoryType);&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE class="" style="background-color: #ffffff; font-size: 11.52px; margin: 0.6em 0.5em;"&gt;&lt;CODE style="font-size: 11.52px; margin: 0.6em 0.5em;"&gt;&lt;SPAN&gt;IWorkspace &lt;/SPAN&gt;&lt;SPAN&gt;workspace=&lt;/SPAN&gt;workspaceFactory.OpenFromFile(path, 0);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have following software installed,&amp;nbsp;&lt;/P&gt;&lt;P&gt;ArcGis 10.2.1&lt;/P&gt;&lt;P&gt;C# (.Net 4.5)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest the fix.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 13:39:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/issue-while-using-quot-filegdbworkspacefactory/m-p/630897#M17018</guid>
      <dc:creator>SravaniTirumareddi</dc:creator>
      <dc:date>2016-12-23T13:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Issue while using "FileGDBWorkspaceFactory"</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/issue-while-using-quot-filegdbworkspacefactory/m-p/630898#M17019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not to ask the obvious, are the &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;filename&lt;/SPAN&gt; and &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;hWnd&lt;/SPAN&gt; you are passing both valid/correct?&amp;nbsp; What specifically are you passing as &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;path&lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, have you checked out the following HRESULT E_FAIL threads on GeoNet:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/message/370208?commentID=370208?sr=search&amp;amp;searchId=8dccb3e3-41a3-4177-b1e1-099b65bedcfd&amp;amp;searchIndex=5#comment-370208"&gt;https://community.esri.com/message/370208?commentID=370208?sr=search&amp;amp;searchId=8dccb3e3-41a3-4177-b1e1-099b65bedcfd&amp;amp;searchIndex=5#comment-370208&lt;/A&gt;&lt;A&gt;‌&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/message/591142?commentID=591142?sr=search&amp;amp;searchId=3f3939c6-0e5b-424b-8e54-8f2e041d4a66&amp;amp;searchIndex=2#comment-591142"&gt;https://community.esri.com/message/591142?commentID=591142?sr=search&amp;amp;searchId=3f3939c6-0e5b-424b-8e54-8f2e041d4a66&amp;amp;searchIndex=2#comment-591142&lt;/A&gt;&lt;A&gt;‌&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems network-path data and illegal characters can cause the error in certain situations.&amp;nbsp; Also, sometimes it isn't directly related to the code but corrupted caches in Visual Studio, so you might want to Google around for solutions beyond ArcGIS code changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 15:16:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/issue-while-using-quot-filegdbworkspacefactory/m-p/630898#M17019</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-12-23T15:16:26Z</dc:date>
    </item>
  </channel>
</rss>

