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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WScript and Permissions

Status
Not open for further replies.

dfbosse

Programmer
Oct 27, 2003
8
US
I am executing an exe from an asp page, using wscript. Here is the code:

set WshShell = server.CreateObject("WScript.Shell")
RunString = server.MapPath("/GenFiles/") & "\CommTest.exe"
WSHShell.run(RunString)

The exe runs, however, when it attempts to create a new object, in this case, an adodb connection object, I get this error:

ERROR: 429, ActiveX component can't create object

The same error occurs when attempting to create a new adodb.recordset object.

When I run my exe from the command prompt or a batch file, it works perfectly. I am logged in as an admin user.

My web server is running IIS 6 on 2003. This code works fine on a 2000 web server.

I've tried setting IUSR permissions on my folder where my exe resides (GenFiles), as well as the program files\common\ado folder and wscript.exe.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top