Hi,
I assume that "
http://localhost/AMSDemo/Default.aspx" is a typo as this url does not have a port and you said you have Lightstreamer on port 80 (so your IIS must listen to a different port)
If you're using two servers (ie Lightstreamer + Web Server) you can no longer use "localhost" to reach your pages but you should use a complete machine name (e.g.: mypc.mydomain.com) and your code should change accordingly:
[syntax="JS"]//////////////////PushPage/Engine Config
var lsPage = new PushPage();
var debugAlerts = true;
var remoteAlerts = false;
var pushHost = "mypc.mydomain.com";
lsPage.context.setDomain("mydomain.com");
lsPage.context.setDebugAlertsOnClientError(debugAlerts);
lsPage.context.setRemoteAlertsOnClientError(remoteAlerts);
lsPage.onEngineCreation = function(engRef) {
engRef.context.setDebugAlertsOnClientError(debugAlerts);
engRef.context.setRemoteAlertsOnClientError(remoteAlerts);
engRef.policy.setMaxBandwidth(30);
engRef.policy.setIdleTimeout(30000);
engRef.policy.setPollingInterval(1000);
engRef.connection.setLSHost(pushHost);
engRef.connection.setLSPort(80);
engRef.connection.setAdapterName("STOCKJMS");
engRef.changeStatus("STREAMING");
}
lsPage.bind();
lsPage.createEngine("SLEngine","ls/","SHARE_SESSION");[/syntax]
Btw your error does not seem to be related to this problem. Maybe your problem is the following line:
[syntax="JS"]lsPage.context.setDomain(localhost);[/syntax]
do you have a variable called localhost? If not this line will throw an exception so that the entire block is skipped (including the bind call) and the addTable (that's in another block) is executed before the bind as the message states.
HTH