[fpc-pascal] Trying to register a Windows Service gives error
Sven Barth
pascaldragon at googlemail.com
Mon Oct 6 17:36:23 CEST 2014
Am 06.10.2014 17:19 schrieb "Graeme Geldenhuys" <ggeldenhuys at qts.co.uk>:
>
>
> On 06/10/2014 11:59, Graeme Geldenhuys wrote:
>
> > C:\Q-Point\csvimporter>csvimporter_service -i
> > exception at 0042CD50:
> > System error, (OS Code 5):
> > Access is denied.
>
>
> Just a quick follow-up...
>
> I eventually found the problem (by pure luck). Windows Server is weird!
> Even though we logged in with an Administrator privileged account, when
> you open the standard Command Prompt window, it is NOT admin privileged.
> Thus the error. We had to right click the Command Prompt shortcut and
> select "Run as Administrator" - then the service registered and ran fine.
That's the case since Windows Vista. Maybe you have disabled UAC or any
involved mechanisms on the development machines?
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20141006/a6c45497/attachment.html>
More information about the fpc-pascal
mailing list