Solved

Access Permissions to the registers files in a OLE Object.

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

749 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