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