I am having a problem in connecting to the database through code in VS 2010 (C#). My colleagues don't have this problem on their machines and can login without any problem.
ArcGIS version 10.2.2, the same as my colleagues. I can connect to the database outside the ArcMap, without any problem.
Also, I didn't find anyone with the same error code as mine "
HRESULT 0x8004021A or -2147220966" in the Internet and already tried to search Google page 2 and forward so I'm kind of desperate and running out of ideas.
The IWorkspaceFactory.Open pops-up the ArcGIS Database Connection, and after I try to connect (which seems to not even trying to connect since its too fast in showing the error message) it just shows that error as you can see in the print. I can't see the IWorkspaceFactory.Open method since its a black boxed API. I already reinstalled the ArcObjectsSDKNet because the problem seems to be in the API.