Sunday 14 October 2012

Unable to Create ActivexX control error message on 64 bit machines

Recently I was migrating one of the VBS script to 64 bit environment for one of our client. It was configured as scheduled task using Windows Task Scheduler. I noticed it stopped working. So upon investigation I found that the script was giving  "Can't create ActiveX control component" message.
Since the script was using 32 bit version of DLL (CSScript.DLL)  and since runtime was 64 bit it was giving above message. There are two ways to resolve this issue.

Run the Script Manually:

1. To run the script manually you need to run it from 32 bit version of command prompt (cmd.exe)  This is under  Windows\SYSWOW64\ folder.
2. Create short cut of this version of cmd.exe and keep it on your desktop
3. Run this shortcut to go to command line window and run your VBS script and it should work without any errors,

Schedule for Auto running of VBS script:
1. You can use windows task scheduler for configure this as scheduled task.
2.  Create the task and run the VBS script using WSSCRIPT.exe utility (32 bit version). This is again available under Windows\SYSWOW64\ folder.
3. Pass the name of the vbs script  as command line parameter.
4. You are ready to schedule and run it as scheduled task.


I hope you all will find this information useful.



Sunday 15 April 2012

Task Tracker Offline Web Application for Mobile.

Please Read my article on above topic in code project using link below.
Task Tracker Offline Web Application using HTML5,JQuery
I hope you will find it interesting as I explored features of HTML5, JQUERY,JQUERY-UI,JQuery Validation and Knockout.js.