Click here to Skip to main content
15,900,589 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I am VIkash Gohil.
I have ASP.net application with Javascript code as below,

var oWs = new ActiveXObject("WScript.Shell");


We are using this to get client Computer name.

I have installed this application on Client's server and this is an intranet application. Not the Code runs fine on PC with XP Sp2 and Windows2003 Server. but on a PC with Win XP Sp3 it says, ActiveX Component Can't Create Object. I have Checked all the IE Settings and enabled all options for ActiveX Controls to run. Also the user i am logging in to the computer has administrative rights. Can any one tell me why this is happening, or any alternative to this code which runs under any windows OS.

Thanks in Advance, Awaiting a reply soon.
Posted
Updated 22-Sep-10 23:54pm
v2

follow this [link]

vote if it helps
 
Share this answer
 
I think it is better not to use this. Most of the computers disables it by default.

Rather you should use Header to get all info, may be use Server variables etc.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900