Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Installing a C#.Net app on client machine (including a CR preview)

Status
Not open for further replies.

StevenK

Programmer
Jan 5, 2001
1,294
GB
I have developed an application in C# that makes use of a Crystal Report being previewed following the processing of data (into SQL Server through ODBC connections to Paradox and Interbase database tables).
I have installed the .NET framework, ODBC_Net, MDAC, etc. on the target machine and the application operates OK.
When I try and preview the Crystal Report, using the standard Crystal Report Preview component, I get error messages pointing to the files CrystalDecisions.CrystalReports.Engine.dll, and then CrystalDecisions.ReportSource.dll, CrystalDecisions.Shared.dll and then CrystalDecisions.Windows.Forms.dll. Putting all these files on the target machine alongside the application executable itself then present us with an error pointing to CrystalKeyCodeLib.dll. Putting this on the target machine then throws up an error indicating the problem to be KeyCodeV2.dll. Putting this on the machine still gives the same message.
I have had to pull out the previewing of the reports in the application and provide our user with an alternate route to generate the reports.
The user has Crystal Reports installed on their machine and it works correctly.
What files do I need to install on the target machine to get the previewing scenario to work without error in my compiled executable ?
I'm none too familiar with the creation of installation 'Setup.exe' files and can only think that this might be where I need to solve the problem.
Can anyone suggest what I need to do ?
Any help / pointers would be greatly appreciated.
Thanks in advance
Steve
 
Yes, that is exactly your problem. For one, you have to register your Crystal part of .Net to get the license key if you haven't. That allows you to put the key number in the "regwiz.msm" file merge module properties that is needed in your setup project.

I will list the files that I have in my crystal project that I deployed:

regwiz.msm
database_access.msm
database_access_enu.msm
VC_CRT.msm
VC_STL.msm


You can get to them if your right-click your setup project in solution explorer, then add, then merge modeules. They will be listed in there.

 
And how do I go about the registration of Crystal part of .NET ?
Crystal Reports is already installed (and registered) on the target client machine.
Can you give me some pointers with this please ?
Thanks again
Steve
 
I believe you still have to register it. You have to register the .NET version....for the devloper. Then they will email you the reg. number, and you key that number into the merge module....So when you install it on the client's machine, it sees that you registered the prodcut. I don't believe that it cares whether or not the client has a real version of Crystal on their system. They're kinda like 2 different products in that respect I believe.

If you DO have it registered already, it should give you the number when you click Help, and About Microsoft Development Environment.
 
anyway, problem with keycode dll, with failed to load report and similar situations...

check for dbghelp.dll inside your deployment project. if it is set to excluded=true, reset it to excluded=false. it might fix the problem.

---
daniel mosmondor - mosh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top