ArcObjects error Exception from HRESULT: 0x80042601

1183
1
11-01-2019 07:22 AM
ZacharyKing
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 http://resources.esri.com/help/9.3/ArcGISDesktop/dotnet/da79f58c-971a-454e-bc52-974c2c47e26a.htm#Ove.... 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
DuncanHornby
MVP Notable 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