Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Invalid export DLL or export format

Posted on 2006-07-21
14
Medium Priority
?
2,022 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

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…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

670 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