Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / VB

Deploying a .NET Application with Crystal Reports

4.75/5 (17 votes)
29 Aug 2006CPOL1 min read 1   2.5K  
Deploying a .NET application with Crystal Reports

Introduction

Crystal Reports often cause problems in .NET deployment package. Errors like “Can't find keycode32.dll” are likely to occur if the license key is not provided during creation of deployment package. To include license information, use the following procedure.

Create a Sample Deployment project.

Step1

Type the name of your project in the Name: Field “Setup” as in our example.

Now click the Application Folder from the left Pane (“File System on the Target Machine”) , then right click anywhere on the right yet empty pane and select Add > File from shortcut menu.

Step2

Go to the bin directory of your desired .NET application (which is already built) and select the *.exe file. This will add necessary references of all the assemblies required.

Step4

Now go to Solution Explorer and right click on Setup and select Add > Merge Module…

Step4

From Add modules dialog box, select the first four files namely Crystal_Database_Access2003.msm, Crystal_Database_Access2003_enu.msm, Crystal_Managed2003.msm and Crystal_regwiz2003.msm and click Open.

Step 5

Now again from Solution Explorer, right click on crystal_regwiz2003.msm and select properties. Set license key value under MergeModuleProperties > License key as “AAP50-GS00000-U7000RN”.

Step6

Step7

You can find license key information through the About box.

To see how to go to Help menu of Visual Studio 2003, click About Microsoft Development Environment and locate Crystal Reports for Visual Studio.NET.

Step 8

History

  • 29th August, 2006: Initial post

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)