For Programmers: Free Programming Magazines  


Home > Archive > ASP > January 2006 > ASP not working, but same code in VBS works









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author ASP not working, but same code in VBS works
San Diego Guy

2006-01-21, 6:55 pm

Hi all!
I'm working with a SDK provided for some X10 software I have.

If I use the code in an ASP page, nothing happens.. no error, just
nothing. I haven't had a problem with ASP in the past on this computer
and other ASP pages render fine.

If I use the (almost) identical code in a stand alone VBS it works fine.
Both the ASP and VBS are running on the same computer and it's an XP SP2
with IIS installed.

Here's the code

ASP:
<%@ Language=VBScript %>
<%
Set x10Obj = Server.CreateObject("X10.ActiveHome")

x10Obj.SendAction "sendplc", "c2 off"
set x10Obj = Nothing
%>

Here is the VBS code:
Set x10Obj = CreateObject("X10.ActiveHome")

x10Obj.SendAction "sendplc", "c2 off"
set X10Obj = Nothing


Like I said the asp page does nothing, but the vbs runs fine.. the
device goes off.

I can't figure out why the asp wouldn't work, it's virtually the same
code other than the server.createobject and createobject.. but since
it's on the same machine that shouldn't matter.

Anyone have any ideas or suggestions?

Thanks!
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com