Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with NTService launches ActiveX.exe 1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,I need your help in the following situation:
On the same NT4 Server are installed:
1) NTService (written in C++);
2) ActiveX.exe (written in VB);
This NTService has to launch ActiveX.exe and create COM object resides in it.
The operation failed. I've got an error in Application Log of Event Viewer:
"Can't create object with required ProgID".

Security details:
1) current server is a Domain Controller;
2) NTService has started with account of user belongs to Domain Admins.

Note: I succeeded to create required COM object
by TestLauncher (written in VB) when I execute it manually
as a standalone application.

Thanx in advance.
 
I've got very nearly this same scenario working. Only difference is I used the unsupported NTSVC.OCX (wish I had had time to write a real service in C).

I've found that sometimes (and I don't know why) you've got to tweak the access permissions for your COM object. Since you've got an Active-X EXE, it won't be in COM+. Instead, you've got to run the old standby -- DCOMCNFG.

There wasn't any scientific method to getting it to work -- I added both the user my service was running under, plus the "INTERACTIVE" user to both the launch and access permissions.

The strange thing was, once the app was running OK, I could go back and remove the "INTERACTIVE" user and it would continue to run. I called MS support on it, and they just sort of shrugged their shoulders and said that some bit needed flipping.

I hate this kind of bug, especially since I wasted 3 days and a couple of hundred dollars on a call to Redmond.

As a first step -- you might try creating a "nothing-special" ActiveX exe that all it does is report it's loading to the NT event log.

Chip H.
 
I would like to thank you for your help.
Alex, Israel
 
:)
I really want to vote for u but i can't find where- pls let me know:)
 
Jeeze - It looks like the "Was this post helpful" link is missing. I'll notify tech support.

Chip H.
 
Alex -

It turns out that since you're not a registered user, you can't vote for anyone as a tipmaster.

You might consider joining. Tek-Tips doesn't do any of the nasty tricks that other forums do (like sell your name to every scam artist on the planet). Dave (Tek-Tip's owner) is a cool guy, and knows what people want in a forum.

Chip H.
 
i'll do it and i'll let u know about my "problem" :)
when i'll go to work on sunday.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top