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!

CreateObject fails for RDC in ASP

Status
Not open for further replies.

crystalteck

Programmer
Jan 28, 2002
2
US
We use Crystal ActiveX to export reports to PDF and redirect user to the PDF. But lately as our volumes have increased, we are getting the following error message from an ASP

Server object error 'ASP 0177 : 80070057'
Server.CreateObject Failed
One or more arguments are invalid

at the following line

Set rApp = Server.CreateObject("CrystalRuntime.Application")

This happens only sometimes and the code works flawlessly most of the times :-(. There seems to be some DLL which takes a lot of CPU on the IIS webserver when the error appears. If anyone has any comments/suggestions on this one then please let me know.

I first thought this is a license issue but, the maximum that we have reached is 2 out of the 5 that is available. We use IIS 5.0/Crystal 8.5

TIA
 
Are you sure you're killing the session variables that hold the user license when the user closes the report viewer?

If not, the user license will only be released when the session expires...
 
Hi
Hope you have solved ur problem of Crystal Reports,I am new to Crystal Reports,how to call Crystal Reports from ASP.I would be thankful if you help me with the process.
Thanks
Murari
 
We don't put the Crystal Object into a Session variable, we just create it , use it and then destroy it all on the same page. eg:

Set rApp = Server.CreateObject("CrystalRuntime.Application")
Set oRpt = rApp.OpenReport("X:\ReportDir\SomeReport.rpt", 1)

then modify the Selection formula and export

and finally destroy

Set oRpt = Nothing
Set rApp = Nothing

This saves on user licenses. I log the number of licenses used just after the CreateObject line and the maximum it has gone is 2 out of the 5 that is provided. This looks more like an IIS issue. Haven't found any info on either Seagate's or Microsoft's site on this one.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top