?
Solved

ShellExecute and SendMessage from ActiveX DLL in ASP as Administrator

Posted on 2003-02-19
7
Medium Priority
?
728 Views
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,
Jacob
0
Comment
Question by:Nd
[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
7 Comments
 
LVL 3

Expert Comment

by:SVir
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
http://webdevelopment.developersnetwork.com/Articles.asp?Article=57
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/iis/deploy/depovg/compl.asp
0
 
LVL 7

Expert Comment

by:lavinder
ID: 7985753
Hi

 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.

hp!!
0
 
LVL 1

Author Comment

by:Nd
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.
0
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!

 
LVL 1

Author Comment

by:Nd
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:
http://support.microsoft.com/default.aspx?scid=KB;en-us;q248187

thanks again, J
0
 
LVL 10

Expert Comment

by:apollois
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,
>apollois<
0
 

Expert Comment

by:Banath
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.

Banath
EE Moderator
0
 

Accepted Solution

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

Nd- Thanks for sharing your solution.

Banath
EE Moderator
0

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