Solved

Invalid export DLL or export format

Posted on 2006-07-21
14
2,004 Views
Last Modified: 2008-01-09
Hi,

I have a Microsoft .net 2003 ASP.NET application on a Microsoft windows 2003 server. The reports have been designed using the embedded version of Crystal (version 9.1). The code is exporting the reports to a .pdf file, which is then streamed into the response object for viewing.

My problem is that the export process works fine on my development machine, but not on the windows 2003 server (target) machine. The error I get is: "Invalid export DLL or export format".

 What file(s) am I missing on the target machine??  I've tried placing the msvcp60.dll file in the System32 folder AND the application folder, as Crystal suggests, but that didn't help.

Any ideas?
The customer can't run reports now because of this problem. The rest of the app. works fine.
This is urgent, so it's worth 500 points!
0
Comment
Question by:imkiosks
[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
  • 7
  • 5
  • 2
14 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 17158684
Are the versions of Acrobat the same?

The export dll is crxf_pdf.dll.  It is dependent on some other dlls but I am not sure which ones.

Did you install the application using the merge modules?

mlmcc
0
 

Expert Comment

by:brainsprocket
ID: 17158872
Check this out:

http://www.rainforestnet.com/crexport-download.htm

This is a link to Crystal Reports Exporter.  It comes in two flavors, regular and open source.  It solved my exporting problems after days of dll chasing.

brainsprocket
0
 

Author Comment

by:imkiosks
ID: 17167666
brainsprocket,

Although, I appreciate your help - this is not exactly what I need. I can not rely on an external application to perform the export. I need the solution to seamless behind the scenes.

Thanks for the info, nontheless.
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

 

Author Comment

by:imkiosks
ID: 17167749
Michael (mlmcc),

My development machine has Adobe (reader) 6.0.
There are 2 target machines I'm having this exporting issue with: 1. The customer's server, which didn't have acrobat on it at all. I installed version 7 - still the same issue. 2. My test server doesn't have Acrobat on it at all - and I have not installed any version on it yet.  Should I install Acrobat version 6 on it?? Is it still available?

As far as your second question - Yes, the web site was installed using merge modules. It's possible I missed the one I need which handles this exporing business.  Which exact Merge Module would I need? I can re-check my setup program.

Thanks,
Sharone.
0
 

Author Comment

by:imkiosks
ID: 17167963
Michael,

Something else: I'm a little confused on how the export is even working on my development machine at all:

I just did a system-wide search on the crxf_pdf.dll file you mentioned. The only folder the seach found this file in is a 2-year old folder, which is not in use, hasn't been installed, and not in the path. Just to make sure, I renamed the crxf_pdf.dll file to something else, and the web site was STILL able to export the file to a .pdf! Strange!

Are you sure this crxf_pdf.dll file is what I need to chase down??
Sharone.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 17168154
As far as I know that is the name.  The changed the names with CR9 and I only have CR8 so I am not sure.

Look at this article
http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2012421&sliceId=&dialogID=1510186&stateId=1%200%201508230

mlmcc
0
 

Author Comment

by:imkiosks
ID: 17168163
Michael,

Correction to my previous email:  The crxf_pdf.dll file (and what seems like the rest of the support files) can also be found on my development machine in: C:\Program Files\Common Files\Crystal Decisions\1.0\Bin\.

I'm not quite sure why the windows file search didn't find it....  Do you think I need to distribute the files in this folder as well?
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 17172284
How did you build the installation package?  Did you use the merge modules for CR9.Net?

mlmcc
0
 

Author Comment

by:imkiosks
ID: 17175454
I tried 2 different approaches:

1. Using the Merge modules in a setup project.
2. Adding files manually to a setup project.

With approach 1, I noticed that not ALL files contained in the C:\Program Files\Common Files\Crystal Decisions\1.0\Bin\ folder were installed - some were missing (specifically, crxf_pdf.dll and some others).
This is why I went to approach 2. Mind you, I didn't include merge modules I didn't need in approach 1 (for example, VB_Control_mschart_RTL_X86_---.msm).

What do you think?
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 500 total points
ID: 17176521
0
 

Author Comment

by:imkiosks
ID: 17178745
mlmcc,

Thanks! Your last link helped me (partially) solve the problem. I changed the reports to be linked externally instead of being embedded. I believe that was part of the problem.

There were 2 other parts to the whole solution which I found. I think it's worth mentioning them here for the sake of others having the same issue:

1. According to Crystal, there are new(er) Merge Module (.msm) files which are available for download:

ftp://ftp.crystaldecisions.com/outgoing/chf/msm/CRNet11/en/cr_net_2003_mergemodules_en.zip

I built a setup project which includes the Merge Modules in the .zip file above, and also added these .msm files:
- VC_User_CRT71_RTL_X86_---.msm
- VC_User_STL71_RTL_X86_---.msm

2. Finally, since the production server is running Windows 2003 Server, I had to add the "Network Service" user to the security section of the application folder, and turn on "Modify" rights. This allows the ASP .NET application to create the exported .pdf file on disk. Apperantly, under Windows 2003 Server, ASP .NET uses the "Network Service" user and not the ASP user.

So, Kudos to everyone that helped!

0
 

Expert Comment

by:brainsprocket
ID: 17179045
imkiosks:

A note:  Crystal Reporter does work seamlessly in the backround.  I run crystal reports embedded in my app (Maximo CMMS system)  and this is what i used to avoid loading crystal on multiple pc's.  When i said "check this out", i thought you might actually check it out before telling me it didn't work.  That's OK though.  I don't know if it would have worked in your situation, but you should take a look at it.  It can use windows scheduler to automate running reports and sending out email.  But, when I use it, it is seamless and no one knows it's there.

brainsprocket
0
 

Author Comment

by:imkiosks
ID: 17179231
dear brainsprocket,

When I said "seamless", I meant from my ASP.NET application. I did not want to rely on another (external) application to handle reports for me. It had to work directly from the ASP.NET application.

I did, in fact, check out Crystal Reporter before responding to you. My needs were to display reports on demand from the ASP.NET application. I had no need to email anything, That's OK though.

As it turned out my fix involved updated merge modules, externalizing the reports from the application, and assiging the "Network Service" user account to the application folder (so the exported reports could be written to disk).

Thanks for the follow up.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 17180454
Glad i could help

mlmcc
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

632 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