What account is the service running as? Select "This account" and run as administrator.
________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eion McIntosh (Christchurch) Sent: Thursday, 23 November 2006 11:30 a.m. To: NZ Borland Developers Group - Delphi List Subject: RE: [DUG] Windows Services I have just figured out, and we have had the same issue the VB project under Visual Studio, that my application only start if it run from my local PC hard drive. If the program is on our server, and compiles, runs and installs ok, but when you try to start the service we get the Access denied error. However, if it is on ahe local PC hard disk, compile, run and install, and then start the service it works fine. Any thoughts? Eion -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jeremy Coulter Sent: Wednesday, 22 November 2006 6:15 p.m. To: 'NZ Borland Developers Group - Delphi List' Subject: RE: [DUG] Windows Services Yes...thats what I meant. I typed my message in a hurry trying to get out the door at work :-) Jeremy -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Chuah Sent: 22 November 2006 18:05 To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Windows Services Its not you, but the user that the service runs under. By default, this is the SYSTEM user, which does not have many rights. Try changing the configuration of the service to a user with more rights. ----- Original Message ----- From: "Eion McIntosh (Christchurch)" <[EMAIL PROTECTED]> To: "NZ Borland Developers Group - Delphi List" <[email protected]> Sent: Wednesday, November 22, 2006 5:02 PM Subject: RE: [DUG] Windows Services I do have rights to my pc, but it must be something else, because I managed to get a simple service running earlier this afternoon, but now I have made my main program I am getting the error. I have tried commenting everything out so it appears to be the same as earlier this afternoon, but still getting an error. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jeremy Coulter Sent: Wednesday, 22 November 2006 4:49 p.m. To: 'NZ Borland Developers Group - Delphi List' Subject: RE: [DUG] Windows Services its the old windows services permissions issue. All you need to do is run the service as someone with administrator rights, or atleast with read access to the folder where the ini file is stored, and you should be ok. Jeremy _____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eion McIntosh (Christchurch) Sent: 22 November 2006 16:39 To: [email protected] Subject: [DUG] Windows Services Hi I am creating a new windows service for checking if some specific programs are running. When the service starts I want to read in a ini file with a list of programs to look for, but I am getting an Error 5 Access Denied when is starts. Can you read of text file for a service program and if so were should it be stored to be read? I've tried it under the WinNT and System32 and C: but still am getting the error? Running on Win2k. Regards Eion McIntosh PPCS Ltd -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.12/544 - Release Date: 21/11/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.12/544 - Release Date: 21/11/2006 ------------------------------------------------------------------------ ---- ---- > _______________________________________________ > Delphi mailing list > [email protected] > http://ns3.123.co.nz/mailman/listinfo/delphi > _______________________________________________ Delphi mailing list [email protected] http://ns3.123.co.nz/mailman/listinfo/delphi -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.12/544 - Release Date: 21/11/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.12/544 - Release Date: 21/11/2006 _______________________________________________ Delphi mailing list [email protected] http://ns3.123.co.nz/mailman/listinfo/delphi
_______________________________________________ Delphi mailing list [email protected] http://ns3.123.co.nz/mailman/listinfo/delphi
