Conditions:
Operating system : 64 bit
Web Application : 32 bit
Probable errors : Could not load assembly
When running any application on IIS and the dll cannot be loaded,
it could be that the application is a pure 32 bit application and the operating system is 64bit
You would need to enable 32 bit applications in IIS
Following is the process explained:
Configuring IIS to Run 32-bit Applications on 64-bit Windows (IIS 6.0)
Wednesday, January 14, 2009
Monday, January 12, 2009
Retrieving Computer name using scripts (works on Remote system)
action="">
>
type="text/javascript">
var network = new
ActiveXObject("WScript.Network");
document.Master.TerminalId.value = network.ComputerName + "." +
network.UserDomain;
//alert(network.ClientName);
//alert(sys);
//var
sh = new ActiveXObject("WScript.Shell")
//var sys =
sh.ExpandEnvironmentStrings("%CLIENTNAME%")
//alert(sh.clientAddress);
//var
WTS = new ActiveXObject("WTSManager.Shell")
//alert(WTS.MyClientName + " My
IP address: " + WTS.MyIPAddress);
if(sys == '%CLIENTNAME%')
sys =
network.ComputerName;
if(Server == sys)
Server =
network.UserDomain;
type="text/javascript">
alert(sys + " - " + server + ' - ' +
network.UserDomain);
The script will fetch the parameter from the ysstem variable and extract the computer name logged in or the current one.
Labels:
computer name,
javascript,
remote desktop,
vb script
Subscribe to:
Posts (Atom)
