Solved

Invalid export DLL or export format

Posted on 2006-07-21
14
1,964 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
  • 7
  • 5
  • 2
14 Comments
 
LVL 100

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
 

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 100

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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 100

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 100

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 100

Expert Comment

by:mlmcc
ID: 17180454
Glad i could help

mlmcc
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
IF THEN Statement not working 3 27
CRRuntime - Alerts 9 45
Crystal Report Filter Question 6 48
Crystal Reports No Record Returned 2 0
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now