Solved

Access Permissions to the registers files in a OLE Object.

Posted on 2001-07-19
3
172 Views
Last Modified: 2010-04-06
I have an application, that is a DCOM Server (OLE),I use in this application the TRegIniFile class to access an register file for load parameters.

If I create an instance of this ole object in another Delphi application there is no problems. The problem is the following:

I need to create the OLE object in an Active Server Page,
when I do it there is an error, this last is that the OLE object can't access the register file because it don't has permission.

What I can do ?
0
Comment
Question by:lantero
  • 2
3 Comments
 
LVL 26

Accepted Solution

by:
Russell Libby earned 50 total points
ID: 6299922

The DCOM server is probably set up to run as the launching user. (To confirm this, run dcomcnfg.exe and check the Identity tab of the Properties dialog for your DCOM server.)

When launching via active server page, it is most likely running as IUSR_<servername>. This is the default guest account set up by IIS, as is limited to what resources it can access. (unless you have changed the security for the asp page)

To make this work, you can use dcomcnfg.exe to change the identity to a specific user. (this would be the simplest)There are other methods available, for more info check MSDN web site on article Q201843.

Russell
0
 
LVL 26

Expert Comment

by:Russell Libby
ID: 8703619
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

To be PAQ/Refund

Notes:
I DID answer the question, but feel that it is a conflict of interest to recommend the points to myself.

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Thank you,
Russell

EE Cleanup Volunteer
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

706 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

18 Experts available now in Live!

Get 1:1 Help Now