?
Solved

Access Permissions to the registers files in a OLE Object.

Posted on 2001-07-19
3
Medium Priority
?
178 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 26

Accepted Solution

by:
Russell Libby earned 200 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month8 days, 5 hours left to enroll

765 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