?
Solved

JSCRIPT error on Windows Server 2003, making call to craxdrt.dll

Posted on 2003-02-19
10
Medium Priority
?
510 Views
Last Modified: 2008-03-06
The Jscript code listed below comes from an asp script I am trying to run on Windows Server 2003.  I receive the following error in my browser (Mozilla):

Microsoft JScript runtime  error '800a01fb'
An exception occurred
/qa/test.asp, line 30

Line 30 is "crReport.Export(false);".

This same code works fine on Windows 2000 Server.  Thanks for any assistance you can provide.


<%
var crApp = Server.CreateObject("CrystalRuntime.Application");
var crReport = crApp.OpenReport("d:/qa/test.rpt", 1);
crReport.EnableParameterPrompting = false;
crReport.MorePrintEngineErrorMessages = false;

if (crReport.Database.Tables.Count > 0) {
     var crDBTable = crReport.Database.Tables.Item(1);
     crDBTable.SetLogOnInfo(
          /*ODBC Name*/ "Test",
          /*DatabaseName*/ "",
          /*UserID*/ "admin",
          /*Password*/ "");
}

var exportOptions = crReport.ExportOptions;
exportOptions.HTMLFileName = "d:/qa/test.html";
exportOptions.FormatType = 25;    
exportOptions.DestinationType = 1;

crReport.Export(false);
%>
0
Comment
Question by:rhopping
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 7982985
Which line is getting the error?

mlmcc
0
 

Author Comment

by:rhopping
ID: 7983158
Sorry about that, the error occurs on the line:

crReport.Export(false);
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 7991225
Without CR here what are
FormatType 25
DestinationType 1

It almost sounds like you have incompatible options or are missing a dll.

mlmcc
0
On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

 

Author Comment

by:rhopping
ID: 8026187
FormatType 25 sets the HTML format to version 3.2 Extended
DestinationType 1 sets the export to Disk File

We have checked all of the dlls that are installed related to Crystal, they all match with what we have on a Windows 2000 Server installation that works fine.  Also, craxdrt.dll has been properly registered.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 8029820
Was JScript changed any in server 2003?

mlmcc
0
 

Author Comment

by:rhopping
ID: 8060020
I found that by creating a COM+ component for craxdrt.dll the issue was resolved.  Thanks anyway!
0
 

Expert Comment

by:nutan123
ID: 11018012
Hi,

I am facing the same problem. Can you please explain to me how do you cerated COM+ component for craxdrt.dll and also what security access did you give to which user.

Thanks,
Nutan
0
 

Author Comment

by:rhopping
ID: 11018088
1. Open Start|Programs|Administrative Tools|Components Services
2. Open the folders to Components Services\Computers\My Computer\COM+
Applications
3. Right click COM+ Applications and choose New|Application on the menu
4. Click Next, then Create an empty application
5. Give it a name and choose Server Application, then click Next
6. Choose This User and put in local administrator and password, then click
next, then Finish
7. Select the new COM+ Application and open it to show its Components
folder
8. Right click on the Components Folder and choose New|Component
9. Click Next, then the Install new component(s) button
10. Browse to and select the c\winnt\system32\craxdrt.dll file, click Open
11. Click Next, then Finish.
12.  On Windows Server 2003 machines, you will also need to edit the Properties of the new
COM+ application.  Go to the Security tab and uncheck "Enforce access checks for this application"
13. That should fix it, but may require a reboot to take effect

0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 11815084
PAQed, with points refunded (200)

modulo
Community Support Moderator
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses
Course of the Month13 days, 10 hours left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question