<?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 Editing woes on different machines in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/editing-woes-on-different-machines/m-p/1015128#M20241</link>
    <description>&lt;P&gt;I'm trying to debug an add-in written a while ago. It has been maintained and updated through the various versions of desktop. Now at 10.7.1. I have several other add-ins deployed like this and have no problems running or debugging anything. The this project is different. Getting complaints from some staff that it works for them and not for others. When i try to debug, I always get stuck at the start editing line. I went remote in April of 2018 and have been having problems with this.&amp;nbsp; The error is thrown at the start editing line ""Error HRESULT E_FAIL has been returned from a call to a COM component." and&amp;nbsp; &amp;nbsp;HResult is -2147467259&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; Private Sub edit_shape()
        Dim pEditor As IEditor3 = Nothing
        Dim pUID As UID = New UIDClass() With {.Value = "esriEditor.Editor"}
        pEditor = CType(My.ArcMap.Application.FindExtensionByCLSID(pUID), IEditor3)
        Dim workspaceFactory As IWorkspaceFactory = New ShapefileWorkspaceFactory
        Dim workspace As IFeatureWorkspace = workspaceFactory.OpenFromFile("C:\temp\ram_test", 0)
        Dim pFC As IFeatureClass = workspace.OpenFeatureClass("ram_test.shp")
        pEditor.StartEditing(workspace)
        pEditor.StopEditing(False)
        MsgBox("done")
    End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to update off of the shapefile to a gdb, but can't get that to work either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    Private Sub edit_gdb()
        Dim pEditor As IEditor3 = Nothing
        Dim pUID As UID = New UIDClass() With {.Value = "esriEditor.Editor"}
        pEditor = CType(My.ArcMap.Application.FindExtensionByCLSID(pUID), IEditor3)
        Dim workspaceFactory As WorkspaceFactory = New FileGDBWorkspaceFactory
        Dim workspace As IFeatureWorkspace = WorkspaceFactory.OpenFromFile("C:\temp\ram_test\ram_testing.gdb", 0)
        Dim pFC As IFeatureClass = workspace.OpenFeatureClass("ram_test")
        pEditor.StartEditing(workspace)
        pEditor.StopEditing(False)
        MsgBox("done")
    End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;all i'm looking to do is start editing.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jan 2021 20:27:31 GMT</pubDate>
    <dc:creator>MichaelKohler</dc:creator>
    <dc:date>2021-01-08T20:27:31Z</dc:date>
    <item>
      <title>Editing woes on different machines</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/editing-woes-on-different-machines/m-p/1015128#M20241</link>
      <description>&lt;P&gt;I'm trying to debug an add-in written a while ago. It has been maintained and updated through the various versions of desktop. Now at 10.7.1. I have several other add-ins deployed like this and have no problems running or debugging anything. The this project is different. Getting complaints from some staff that it works for them and not for others. When i try to debug, I always get stuck at the start editing line. I went remote in April of 2018 and have been having problems with this.&amp;nbsp; The error is thrown at the start editing line ""Error HRESULT E_FAIL has been returned from a call to a COM component." and&amp;nbsp; &amp;nbsp;HResult is -2147467259&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; Private Sub edit_shape()
        Dim pEditor As IEditor3 = Nothing
        Dim pUID As UID = New UIDClass() With {.Value = "esriEditor.Editor"}
        pEditor = CType(My.ArcMap.Application.FindExtensionByCLSID(pUID), IEditor3)
        Dim workspaceFactory As IWorkspaceFactory = New ShapefileWorkspaceFactory
        Dim workspace As IFeatureWorkspace = workspaceFactory.OpenFromFile("C:\temp\ram_test", 0)
        Dim pFC As IFeatureClass = workspace.OpenFeatureClass("ram_test.shp")
        pEditor.StartEditing(workspace)
        pEditor.StopEditing(False)
        MsgBox("done")
    End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to update off of the shapefile to a gdb, but can't get that to work either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    Private Sub edit_gdb()
        Dim pEditor As IEditor3 = Nothing
        Dim pUID As UID = New UIDClass() With {.Value = "esriEditor.Editor"}
        pEditor = CType(My.ArcMap.Application.FindExtensionByCLSID(pUID), IEditor3)
        Dim workspaceFactory As WorkspaceFactory = New FileGDBWorkspaceFactory
        Dim workspace As IFeatureWorkspace = WorkspaceFactory.OpenFromFile("C:\temp\ram_test\ram_testing.gdb", 0)
        Dim pFC As IFeatureClass = workspace.OpenFeatureClass("ram_test")
        pEditor.StartEditing(workspace)
        pEditor.StopEditing(False)
        MsgBox("done")
    End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;all i'm looking to do is start editing.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 20:27:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/editing-woes-on-different-machines/m-p/1015128#M20241</guid>
      <dc:creator>MichaelKohler</dc:creator>
      <dc:date>2021-01-08T20:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Editing woes on different machines</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/editing-woes-on-different-machines/m-p/1030026#M20250</link>
      <description>&lt;P&gt;after working with ESRI tech, they could not find the reason why. They suggested I move from IEditor3 to using IWorkspaceEdit. Since I wasn't doing anything other than creating features, this fix worked.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 15:45:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/editing-woes-on-different-machines/m-p/1030026#M20250</guid>
      <dc:creator>MichaelKohler</dc:creator>
      <dc:date>2021-02-24T15:45:50Z</dc:date>
    </item>
  </channel>
</rss>

