We help IT Professionals succeed at work.

Cannot attach to services manager (Unable to add user)

rmmarsh asked
Medium Priority
Last Modified: 2013-12-17
I have a C# program that uses Firebird.  I just installed 2.0.5, and now it's telling me that the user doesn't exist (it must have replaced the Security2.fdb file).  From the C# program, I used to be able to issue a command "gsec.exe -add userx -password xyz, but now it tells me "cannot attach to services manager" (I checked and the Firebird server is running).

If I run "gsec -user SYSDBA -password masterkey" from a command prompt, the gsec program starts and I can then enter the new user.  But I have to be able to do this from within my C# program, because the user of the program will not be able to do this.

Any ideas on how to fix this?
Watch Question

Nick UpsonPrincipal Operations Engineer
you are right about the security file being replaced on install, what happens if you run "gsec.exe -add userx -password xyz" on a commandline

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


It works on the command line... I need to be able to do this programmatically from the C# program... I thought if I started gsec with user = sysdba and then on the same line added the user it might work, but gsec doesn't like that...
Principal Operations Engineer
I don't know c# but I'd expect it to have a way to use the services api directly


Hmmm... I'll look into the API... thanks...
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.