Solved

Permissions required to READ Windows registry by an isapi dll ?

Posted on 2011-03-09
3
1,054 Views
Last Modified: 2012-08-13
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
0
Comment
Question by:RetroRocker
  • 2
3 Comments
 
LVL 17

Expert Comment

by:TheRealLoki
Comment Utility
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
0
 

Accepted Solution

by:
RetroRocker earned 0 total points
Comment Utility
Thanks for the help anyhow. I was already working as a 'Administrator' on this server in any case. I have now found the solution and it turned out to be nothing so complex as permissions ... and we know how complex they can be :)
I had missed the fact that the registry keys I needed to read should reside below the 'Wow6432Node' registry node because this was a 32 bit process running on a 64 bit server ... oh well ;)

RR
0
 

Author Closing Comment

by:RetroRocker
Comment Utility
Own solution found as posted above.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now