Solved

Access Permissions to the registers files in a OLE Object.

Posted on 2001-07-19
3
174 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

803 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