Invalid export DLL or export format

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!
imkiosksAsked:
Who is Participating?
 
mlmccCommented:
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
 
brainsprocketCommented:
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
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
imkiosksAuthor Commented:
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
 
imkiosksAuthor Commented:
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
 
imkiosksAuthor Commented:
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
 
mlmccCommented:
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
 
imkiosksAuthor Commented:
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
 
mlmccCommented:
How did you build the installation package?  Did you use the merge modules for CR9.Net?

mlmcc
0
 
imkiosksAuthor Commented:
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
 
imkiosksAuthor Commented:
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
 
brainsprocketCommented:
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
 
imkiosksAuthor Commented:
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
 
mlmccCommented:
Glad i could help

mlmcc
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.