Please login or register.

Login with username, password and session length

Author Topic: .NET Web app... looking for help.  (Read 13400 times)

steve c.

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 2
.NET Web app... looking for help.
« on: November 05, 2005, 08:43:59 PM »

Hello.
I have a simple .Net web application that
turns off/on a light. The application works
when I run it in debug under VS2005, but
does not work when it is deployed under IIS.

I have a class that creates the ActiveHome
object and then call methods from the asp
page.

Code snip from class (I am using j#):

public class HomeControl
{
static
ActiveHomeScriptLib.ActiveHomeClass
ActiveHomeObj = new
ActiveHomeScriptLib.ActiveHomeClass();

public static void turnOnLitght()
{
ActiveHomeObj.SendAction
("sendplc", "a1 on", "", "");
}

public static void turnOffLitght()
{
ActiveHomeObj.SendAction
("sendplc", "a1 off", "", "");
}

}

And in the asp page:

protected void LightSwitchOn_Click(Object
sender, EventArgs e)
{
HomeControl.turnOnLitght();
}



Again, this works when running under the
VS2005 debugger, but not when deployed
under IIS.

Thanks for any comments/suggestion!!

-Steve
Logged

steve c.

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 2
Re: .NET Web app... looking for help.
« Reply #1 on: November 06, 2005, 06:00:57 PM »

Problem solved. Solution was changing
launch permission on the COM object
(x10nets). Details here:
http://support.microsoft.com/default.aspx?
scid=kb;en-us;810564

NEW QUESTION:
Anyone have J# code samples for how to use
the event handler to receive events??

Thanks!
-Steve
Logged
 

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