I am a new to lightstreamer. I developing a .ASPX page to receive stream data from JMS.
These are the steps I am following, but I get the error

"ER add Table Cant add table is PusgPage is not bound. Please call the bind() method of PushPage before adding tables"

Please tell me what I am doing wrong.


1) open a aspx project.
2) This is my code for the default.aspx page.

3) I publish this website to c:\inetpub\wwwwroot.

4) My lightsreamer.conf has the http port as 80

5) when I use the URL http://localhost/AMSDemo/Default.aspx, i get the above error.
Please help


<%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Dataware AJAX Messaging Service Demo</title>
<link href="StyleSheet.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="ls/lscommons.js"></script>
<script language="JavaScript" src="ls/lspushpage.js"></script>
<script language="JavaScript">

///////////////////block escape key
document.onkeydown = checkEscape;
document.onkeypress = checkEscape;
function checkEscape(e) {
if(!e) e = event;
if(e.keyCode == 27) return false;
}

//////////////////PushPage/Engine Config

var lsPage = new PushPage();
var debugAlerts = true;
var remoteAlerts = false;
var pushHost = "localhost";

lsPage.context.setDomain(localhost);
lsPage.context.setDebugAlertsOnClientError(debugAl erts);
lsPage.context.setRemoteAlertsOnClientError(remote Alerts);

lsPage.onEngineCreation = function(engRef) {
engRef.context.setDebugAlertsOnClientError(debugAl erts);
engRef.context.setRemoteAlertsOnClientError(remote Alerts);

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");



</script>
</head>
<body>
<table class="demoTitle" style="width:100%">
<tr>
<td><img style="border-width:0" src="images/TRO.gif" /> </td>
<td><div class="demoTitle">Lightstreamer ASP.NET AJAX Demo With Datatware</div></td>

</tr>
</table>
<form id="form1" runat="server">



<table style="width:100%">



<tr>
<td class="stockTD"><div source="lightstreamer" table="1" item="1" field="1">-</div></td>
<td class="stockTD"><div source="lightstreamer" table="1" item="1" field="2">-</div></td>
<td class="stockTD"><div source="lightstreamer" table="1" item="1" field="3">-</div></td>
</tr>


<script language="JavaScript">

var lsTable = new OverwriteTable(null, null, "MERGE");
lsTable.setRequestedMaxFrequency(1);
lsTable.setSnapshotRequired(true);
lsPage.addTable(lsTable,"1");
</script>

</table>



</form>
</body>
</html>