2
votes

I have created a Datasnap server as Windows Service following this tutorial successfully. I can install it using the command line and adding /INSTALL. However, when I follow this same tutorial for Delphi XE2, I can't get the service installed (although I am Administrator).

It returns the following error:

---------------------------
Error
---------------------------
Service "ServerContainer3" failed to install with error: "System Error.  
Code: 1057.
The account name is invalid or does not exist, 
or the password is invalid for the account name specified"

How do I get the Datasnap service working compiled with Delphi XE2?

2
Perhaps a problem with the login or password expecting a AnsiString and getting a Unicode response?Johan

2 Answers

3
votes

When creating the service, ensure the property ServiceStartName is blank and so is the Password property. This will have the service Logon default to Local System account, which works well. If you want to use a specific account to logon when the service starts, enter this in the ServiceStartName property and provide the accompanying password in the Password property.

Hope this helps.

1
votes

My best crack at it would be you being administrator - and your account does not have a password. A bit of Google-Fu reveals this http://support.microsoft.com/kb/159925

I have created a few datasnap services without any problems - related to this anyways :-)