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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSP Logon Error

Status
Not open for further replies.

chris777

MIS
Jan 3, 2002
228
US
O.k., newguy question...

I am logging onto CE and I create the session object then call the logon and pass the username, pass, aps, and authent; like this:

<%
Option Explicit

dim user, pass, aps, auth, sm, es, logontokenmgr, logontoken

aps=Request.ServerVariables(&quot;WCS_NAME_SERVER&quot;)
user=request.form(&quot;txtUser&quot;)
pass=request.form(&quot;txtPass&quot;)
auth=request.form(&quot;txtAuth&quot;)

set sm=createobject(&quot;CrystalEnterprise.SessionMgr&quot;)
response.write &quot;sm done<br>&quot;
set es=sm.Logon(user,pass,aps,auth)
response.write &quot;es done<br>&quot;

However, I get an error at the &quot;Set es&quot; line for:
&quot;Plugin Manager error: Unable to locate the requested plugin Enterprise on the server.&quot;

What did I miss?

Chris
DFW Crystal User Group
 
Can you run ePortfolio and CMC? they use same way to logon to APS, if not, then maybe installation has something wrong.
Furthermore, Don't you need to use

&quot;Set sm= server.createobject(&quot;crystalenterprise.sessionMgf&quot;)&quot;

or maybe you can try below code.

' Start a new session with the CE SDK so we can logon or logoff to the APS
on error resume next
set oSessionMgr = Server.CreateObject(&quot;CrystalEnterprise.SessionMgr&quot;)
if err.number < 0 then
' Lots of error checking is always a good idea
' In this sample we'll just response.write errors to the browser,
' but your application can do something slicker.
response.write &quot;Error &quot; & err.number & &quot;: [&quot; & Err.Description & &quot;] creating CE SessionManager session.<br>&quot;
response.end
end if


on error resume next
' Note the first 2 parameters are username and password.
' We use empty strings to indicate the guest account.
' This sample will fail if guest does not have view rights to the report.
set oEnterpriseSession = oSessionMgr.Logon(&quot;administrator&quot;,&quot;&quot;,apsname,&quot;secEnterprise&quot;)
if err.number < 0 then
response.write &quot;Error &quot; & err.number & &quot;: [&quot; & Err.Description & &quot;] on logon to APS [&quot; & apsname & &quot;].<br>&quot;
response.write &quot;Can't logon as guest - check license count in Crystal Management Console.<br>&quot;
response.end
end if

Hope it helps!

Ted
 
The CMC and ePortfolio both work. I just installed CE8.0 on my local machine for development. The Session Manager is created because I get my response &quot;sm done&quot; but the the error when I try to LogOn.
Chris
DFW Crystal User Group
 
I never have this error message in my development process. you can paste the error message to crystal support website or try to call crystal technical support if it becomes time consuming.

btw: you need to make sure all the crystal severs are running correctly.

Ted
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top