ArcObjects error Exception from HRESULT: 0x80042601

11-01-2019 07:22 AM
New Contributor II

I am attempting to use ArcObjects to add a feature class to an existing replica as outlined in the code sample provided via After compiling the code, ArcMap launches and I am able to add the button however, the following error is thrown: System.Runtime.InteropServices.COMException: 'Exception from HRESULT: 0x80042601'. The ArcObjects error code would convert to -2147211775 though when searching, this returns no results.System.Runtime.InteropServices.COMException:

1 Reply
MVP Frequent Contributor

Have you confirmed that both workspace and replicaname are both valid and point to locations that exist, there appears to be not testing and error trapping in your code?

0 Kudos