ShellExecute and SendMessage from ActiveX DLL in ASP as Administrator

Posted on 2003-02-19
Medium Priority
Last Modified: 2008-03-10
Hello everyone,

My problem: I have made a DLL in VB that starts an application, gets its handle and uses SendMessage

to send commands to the application. The problem is that when i use the component from ASP, it runs

the application as the IUSR or the IWAM (when logged in using NTLM) user account. What i need is to run my component from ASP as the Administrator so the application starts up properly and accepts messages. Any ideas? Perhaps i should use DCOM (no experience)? Can i register the component programmatically when DCOM should be needed?

Thanks in advance,
Question by:Nd
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

Expert Comment

ID: 7984098
Use COM+ to solve this issue.

you can create an application in component services which uses this dll. then you can change the identity of the user for this application. It should only take you 5 min.

Details on creating a com+ application on

Expert Comment

ID: 7985753

 If you have control of webserver and the administrator allows you to have administrator privileges for the component to run, then Svir has given the solution. Otherwise, i think you will need to use WSH for this purpose. If you can explain what your component is doing in problem's context, perhaps, i can try to give better answer.


Author Comment

ID: 7986217
Thank you so far! I'll give it a try when i can get back to fixing the problem.. i'll post later to tell whether i've fixed it, otherwise i'll explain in a little more detail what i'm trying to accomplish.
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 8049527
Thanks everyone for all of your advice, but this doesn't quite accomplish what i had in mind.. what i wanted to achieve was similar to the code you'll find in the following article:

thanks again, J
LVL 10

Expert Comment

ID: 8125603
Hi Nd,

Since you solved the problem yourself, you can close this question and obtain a refund of your points by posting a zero-point question with Community Support (http://www.experts-exchange.com/Community_Support/).  Include a link to this question and your request.

Good luck on your project.

Best Regards,

Expert Comment

ID: 8137434
A request has been made to refund and/or delete this question; if there are no objections within 72 hours, the request will be granted.

EXPERTS: Please leave your thoughts on the disposition of this question here.

Nd- Thanks for providing your solution.

EE Moderator

Accepted Solution

Banath earned 0 total points
ID: 8160835
Per request - refunding points & PAQing.

Nd- Thanks for sharing your solution.

EE Moderator

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

777 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