Posted: Tue Jun 14, 2005 2:22 pm Post subject: Wscript and permissions
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 and IWAM permissions on my folder where my exe resides (GenFiles), as well as the program files\common\ado folder and wscript.exe.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum