The Windows API call is GetObject(), so GetObj() looks like a wrapper of some sort. Are you sure you've got that in scope in both environments?

And I know this is an is-it-plugged-in type question, but are you sure your EA 12 instance actually has a repository open?

Finally, unless this is a throwaway hack, this design won't work because there is no "the running instance" of EA. You can run as many instances of EA as you've got memory for, and you can even connect to the same repository in different instances on the same machine.

I need to access the running instance of EA from C#, I have two machines one with EA version 10 installed and the other has version 12The following code snippet works fine and returns the correct connection string with EA Version 10

In order to install my add-in the users need administrator access on their machines to register the dll in the registry using regasm.exe is there a way to enable users who have no admin access to use install the add-in?

When I attempt to use "Code Engineering > import source directory" it works fine if the target package is empty, but, if the package is not empty(contains sub-packages), the reverse results into an empty diagram and no elements are created.