Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 21st, 2004, 01:29 PM
Registered User
 
Join Date: Oct 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP launching exe question - URGENT!

I have a JScript based ASP page (IIS 5.0) that must launch an exe file on the server. Thing is, this exe (an ldapsearch client) then connects to another server (an LDAP server, obviously) to get its return information and pass it back to the waiting ASP page variable.

I cannot get this to work from a webpage, but it works fine when run through command prompt locally (logged in as admin in this case).

Anybody have ideas on the permissions or anything else I should be looking at to make this work? Urgent response required if at all possible!! Thanks!

LB
 
Old October 26th, 2004, 07:09 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anubhav.kumar
Default

hi lb

the iis acceess the system resources or more specifically anything outside its own space by using iusr_<computername> or iwam_<computername> accounts. These accounts are guest account and have limited access. I hope this is the rael bottleneck for you. If you are hosting your own web server then try changing the access permission of these accounts.

You are able to execute through commandline because that action is using admin account (as stated by you).

Anubhav Kumar
 
Old October 26th, 2004, 05:30 PM
Registered User
 
Join Date: Oct 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for responding. I'll give you an update.

The exe file I'm trying to execute is an LDAP client tool for IBM directory server 4.1. There are a bunch of dll's that need to be available for the tool to use, in the same folder as the exe, for it all to work.

I have since used cacls on the exe file and given IUSR_<computername> read/execute privs on it. What happens now is when the ASP script attempts to run the file, I get a popup error on the server that the exe is complaining it can't find one of it's dll's, and it cites that the dll wasn't found in any of the paths in the system Path variable. Thing is, the correct path is listed in that variable, and you can even see it in the error msg!

Should I give more permissions to the IUSR account to the exe's parent folder and other dll files?

Any ideas?






Similar Threads
Thread Thread Starter Forum Replies Last Post
Classic ASP question. Urgent !!! victorv Classic ASP Basics 0 September 25th, 2006 10:22 AM
urgent doubt to run calc.exe from asp.net page geetha ASP.NET 1.0 and 1.1 Professional 0 July 19th, 2006 07:35 AM
Launching ASP Page with Windows Task Scheduler kevorkian Classic ASP Basics 1 March 30th, 2006 08:43 PM
Urgent! How to make vb application to .exe? snowydust VB How-To 3 August 10th, 2004 11:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.