Microsoft.NET

……………………………………………….Expertise in .NET Technologies

Deploying a .NET Application with Crystal Reports

Posted by ravivarmathumati on May 6, 2009

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.

cr1

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.

cr2 

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.

cr3 

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

cr4 

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.

cr5 

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”.

cr6 

cr7

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.

 cr8

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>