Solved

System Error Message "&H80004015" Running ActiveX DLL in IDE

Posted on 2001-07-18
12
618 Views
Last Modified: 2008-03-03
I try to develop ActiveX Exe application that has Form, Modules, and Class Modules.

I use NTSVC.OCX object to make this ActiveX become Service.

When I try to set its Class Modules's Identity Properties into "The Interactive User" using dcomcnfg.exe. then I install this as NT Service.
While i am running the service, I found this error:
" System error &H80004015(-2147467243). The class is configured to run as a security ID different from the caller. "

I have read this article.

http://support.microsoft.com/support/kb/articles/Q228/4/87.asp

But now, can anybody help me, what should I do technically ? Step by step procedure to remove this error.


thanks in advance.

0
Comment
Question by:kurniadi
12 Comments
 

Expert Comment

by:Alon_h
ID: 6297194
Hi kurniadi.

R u work on Windows2000 ???

if the anser is yes, you can install the "Client for Microsoft Network" component and then reboot.

0
 

Author Comment

by:kurniadi
ID: 6297385
No. I am currently using Windows NT. 4.0 Workstation.
I think your suggestion are shown on Microsoft KB.
Anyway, thanks for your attention.

rgds,
Herman
0
 
LVL 4

Expert Comment

by:VincentLawlor
ID: 6297687
<PING>
0
 
LVL 7

Expert Comment

by:Z_Beeblebrox
ID: 6298316
Hi,

Isn't the problem that you cannot have the identity set to the interactive user, because there is no interactive user for a service? Are you sure that you can run an ActiveX exe as a service?

Zaphod.
0
 
LVL 4

Expert Comment

by:VincentLawlor
ID: 6298363
I Services control panel change your service to use a system account.

In DCOM config change or add the system account to your Default Access Privelages.

Same applies to the other privelages.

Vin.  
0
 

Author Comment

by:kurniadi
ID: 6298373
Hi Zaphod,
Perhaps, something like you mentioned. What i look for is sort of source code or setting instruction to fix this.  Cause microsoft just provides theory for this problem.

rgds,

0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:kurniadi
ID: 6298507
Vin,
before your comment arrived, i've tried to do similar with your suggestion. I set Log On As option in Service's startup... into This Account, then fill with my account.
My ActiveX works and runs properly as a service.
I think, if  it makes my service works ? yes it solves problem. Since I will not be the only one that access this service, any other way ?

FYI, I put NTSVC.OCX object in form.

rgds,
0
 
LVL 4

Accepted Solution

by:
VincentLawlor earned 250 total points
ID: 6298625
You can restrict it to one account using Services Control Panel and DCOM Config but this is not really what you want.

The service should really use a system account if you want it to run without user intervention i.e. Someone logged onto the machine.

Vin.
0
 

Author Comment

by:kurniadi
ID: 6298765
Vin,
Yes, as you explained.

thanks,
0
 
LVL 8

Expert Comment

by:Dave_Greene
ID: 6298812
HOWTO: Launching OLE Servers from ISAPI Extensions
http://support.microsoft.com/support/kb/articles/Q156/2/23.ASP
0
 
LVL 4

Expert Comment

by:VincentLawlor
ID: 6301425
Any progress on this one ?

Vin.
0
 
LVL 4

Expert Comment

by:VincentLawlor
ID: 6301434
Dave I don't think that KB article is relative to this problem.

Vin.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

947 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