• RSS
  • Twitter
  • FaceBook

Security Forums

Log in

FAQ | Search | Usergroups | Profile | Register | RSS | Posting Guidelines | Recent Posts

Wscript and permissions

Users browsing this topic:0 Security Fans, 0 Stealth Security Fans
Registered Security Fans: None
Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Programming and More

View previous topic :: View next topic  
Author Message
dfbosse
Just Arrived
Just Arrived


Joined: 14 Jun 2005
Posts: 0


Offline

PostPosted: Tue Jun 14, 2005 2:22 pm    Post subject: Wscript and permissions Reply with quote

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.
Back to top
View user's profile Send private message
superlone
Just Arrived
Just Arrived


Joined: 09 Jun 2005
Posts: 0


Offline

PostPosted: Wed Jun 15, 2005 9:52 am    Post subject: Reply with quote

well ,maybe your wshom.ocx component was not registered properly.just open a cmd.exe shell,and run "regsvr32 /i wshom.ocx" to reinstall it.
Back to top
View user's profile Send private message
dfbosse
Just Arrived
Just Arrived


Joined: 14 Jun 2005
Posts: 0


Offline

PostPosted: Thu Jun 16, 2005 2:06 pm    Post subject: Reply with quote

Thanks, but that had no effect.
Back to top
View user's profile Send private message
Display posts from previous:   

Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Programming and More All times are GMT + 2 Hours
Page 1 of 1


 
Jump to:  
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

Community Area

Log in | Register