• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2403
  • Last Modified:

Cannot attach to services manager (Unable to add user)

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?
0
rmmarsh
Asked:
rmmarsh
  • 2
  • 2
2 Solutions
 
NickUpsonSenior Network EngineerCommented:
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
0
 
rmmarshAuthor Commented:
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...
0
 
NickUpsonSenior Network EngineerCommented:
I don't know c# but I'd expect it to have a way to use the services api directly
0
 
rmmarshAuthor Commented:
Hmmm... I'll look into the API... thanks...
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now