.NET Web app... looking for help.

Started by steve c., November 05, 2005, 08:43:59 PM

Previous topic - Next topic

steve c.

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

steve c.

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