Link to home
Start Free TrialLog in
Avatar of RetroRocker
RetroRocker

asked on

Permissions required to READ Windows registry by an isapi dll ?

Hi
Given an isapi dll created with Delphi / IntraWeb 10.0.23 running on IIS6 (Win2003), I'm having a problem getting to read values from the server's registry.
I have no obvious problem with the code, which runs just fine inside the same application compiled as a standalone server, running on my development machine (WinXP).
This appears to be a permissions issue and I have progressively/selectively allowed upto 'Full Control' on the group/user accounts for the isapi.dll in NTFS with particular attention to the IUSR_xxxxxx account (which for typical usage would need to be Read & Execute). The registry values just don't get read whatever permissions I set. The read requests are explicitly coded as so ... and I think that I should be able to do this. There are no errors generated.

Can you help with advice regarding permissions ?
Is there possibly a setting within IIS6 which applies to an/the isapi dll ? ...
I've looked at the dll's properties within IIS6 but as yet found nothing to help.

thanks and best regards

RR
Avatar of TheRealLoki
TheRealLoki
Flag of New Zealand image

I'm not a web server admin so take my lack of knowledge ansers in the helpful manner they are intended.

just a hunch, but it probably inherits the permission of the web server (IIS service?)
if it's worth a check, use the services.msc and change the service to log in as a specific account that has the rights you need (e.g. try "administrator" for a quick test)
make a note of what user the service is currently using though, so you can change it back.

If this works then at least we know we're on teh right track, and can use an appropriate user and settings for the web server
ASKER CERTIFIED SOLUTION
Avatar of RetroRocker
RetroRocker

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RetroRocker
RetroRocker

ASKER

Own solution found as posted above.