Please login or register.

Login with username, password and session length

Author Topic: Problems running VB code in ASP, but works fine in HTML  (Read 8257 times)

ufans

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 7
Problems running VB code in ASP, but works fine in HTML
« on: October 14, 2007, 10:08:47 AM »

I have the dynamicreceive.html sample code working great, but I can't get the following code to work

<%@ Language=VBScript %>

<%
Set x10Obj = Server.CreateObject("X10.ActiveHome")
'x10Obj.OnRecvAction "DoRecvAction"

x10Obj.SendAction "sendplc", "a3 on"

set x10Obj = Nothing
%>


I have IIS setup to run ASP files and the fact that the dynamicreceive.html code works means that the DLL is correctly registered.  Don't know what is up.  The only thing I can think of is security setting in IIS that prevents the running of ASP that impacts other programs/DLLs.

Anyone have an idea or a work-around?
Logged

frasierman

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 10
Re: Problems running VB code in ASP, but works fine in HTML
« Reply #1 on: March 25, 2008, 11:18:44 AM »

Can you post the HTML file?
Logged
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.