Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP - CE on IIS

Status
Not open for further replies.

annpaul

Programmer
Aug 6, 2003
3
US
Hi all,
I am having a strange problem.
I have a viewer.asp file in which I have the code
//Crystal Enterprise Session - START
try
{
var SessionManager = Server.CreateObject("CrystalEnterprise.SessionMgr");
var aps_user = ""
aps_user = "Administrator";
var Sess = SessionManager.Logon( aps_user, &quot;&quot;, <MYHOST>, &quot;secEnterprise&quot; );
var IStore = Sess.Service (&quot;&quot;, &quot;InfoStore&quot;);
SetSession (&quot;IStore&quot;,IStore );
var LogonTokenMgr = Sess.LogonTokenMgr;
var TokenHndlr = LogonTokenMgr.CreateLogonTokenEx(&quot;&quot;, 60, 100);
SetCookie (&quot;LogonToken&quot;, TokenHndlr);
}
catch (e)
{
<MY HANDLER>}
//Crystal Enterprise Session - END

<%
try
{
var rpt_id = Request.QueryString.Item(&quot;id&quot;);
var Reports = IStore.Query(
&quot;SELECT SI_ID, SI_NAME, SI_PROCESSINFO.SI_PROMPTS &quot; +
&quot;FROM CI_INFOOBJECTS &quot; +
&quot;WHERE SI_NAME like '&quot; + rpt_id +&quot;' and &quot; +
&quot;SI_PROGID = 'CrystalEnterprise.Report'&quot;
);
var ReportID;

ReportID = Reports.Item(1);
}
catch (e)
{
<MY HANDLER>
}
%>


With the ReportID i get, I call the viewrpt.cwr command.
But the page having this code will not get displayed and finally gives 'PAge Cannot Be displayed&quot; error after some successful attempts. I am not able to find a pattern for when this happens.. Any inputs on why this happens will be very helpful

Thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top