Click here to Skip to main content
13,043,154 members (51,822 online)
Click here to Skip to main content
Add your own
alternative version


52 bookmarked
Posted 29 Aug 2006

Deploying a .NET Application with Crystal Reports

Rate this:
Please Sign up or sign in to vote.
Deploying a .NET application with Crystal Reports


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.


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.


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.


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


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



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


  • 29th August, 2006: Initial post


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


About the Author

Muhammad Shahbaz Saleem
Software Developer (Senior) Stratasoft, TRG(The Resource Group)
Pakistan Pakistan
My name is Muhammad Shahbaz Saleem. I am an enterprise application developer and a strong advocate of re-usability and cross-platform development. I am also an admirer of interactive UI technologies and love to play with AJAX, CSS, JQuery etc. Since 2005, I have been involved in solving architectural problems and evolving complex requirements into simple and robust solutions for desktop, mobile and the Web.

As a person, I am opinionated and always love a good debate; I have a lot to say about software engineering, design patterns, service-oriented architecture and mobile computing.

You can email me at mshahbazsaleem[at]gmail[dot]com
If you like to talk here is my s@k@y@p@e id m[dot]shahbaz[dot]saleem

You may also be interested in...


Comments and Discussions

QuestionMerge modules not found for crystal reports Pin
heemanshubhalla9-May-14 4:16
memberheemanshubhalla9-May-14 4:16 
QuestionAdding a merge module Pin
Yigit Atli23-Oct-09 2:40
memberYigit Atli23-Oct-09 2:40 
Questiondeployment with crystal reports Pin
devaraja9-Apr-08 2:56
memberdevaraja9-Apr-08 2:56 
GeneralNeed some help with crystal reports Pin
GaliaB4-Aug-07 23:58
memberGaliaB4-Aug-07 23:58 
GeneralRe: Need some help with crystal reports Pin
Muhammad Shahbaz Saleem5-Aug-07 19:43
memberMuhammad Shahbaz Saleem5-Aug-07 19:43 
GeneralRe: Need some help with crystal reports Pin
GaliaB5-Aug-07 20:56
memberGaliaB5-Aug-07 20:56 
GeneralRe: Need some help with crystal reports Pin
Muhammad Shahbaz Saleem6-Aug-07 19:14
memberMuhammad Shahbaz Saleem6-Aug-07 19:14 
GeneralRe: Need some help with crystal reports Pin
GaliaB7-Aug-07 8:44
memberGaliaB7-Aug-07 8:44 
QuestionPDF file into Crystal report Pin
elgee7723-Jun-07 7:44
memberelgee7723-Jun-07 7:44 
QuestionDeploying DotNET Application with Crystal Reports Pin
salimkim26-Apr-07 22:35
membersalimkim26-Apr-07 22:35 
GeneralCrystal report deployment in 2005, Very Urgent Pin
Meena Trivedi3-Apr-07 1:57
memberMeena Trivedi3-Apr-07 1:57 
AnswerRe: Crystal report deployment in 2005, Very Urgent Pin
Muhammad Shahbaz Saleem3-Apr-07 2:47
memberMuhammad Shahbaz Saleem3-Apr-07 2:47 
GeneralFailed to open connection... Pin
Deester11-Jan-07 9:58
memberDeester11-Jan-07 9:58 
GeneralRe: Failed to open connection... Pin
Muhammad Shahbaz Saleem11-Jan-07 18:18
memberMuhammad Shahbaz Saleem11-Jan-07 18:18 web report does not show properly Pin
yaselp8-Nov-06 11:49
memberyaselp8-Nov-06 11:49 
Hello, I have an project that contains a particular crystal report (done with Crystal Reports for Visual Studio .NET 2003 AAP50-GS00000-U7000RN).
This web project was deployed in one computer, copied to another computers and registered in their respective IISs, it works good and shows the information appropriately in these stations(running IIS 5.1 on WinXP sp2 and 6.0 win2003), except in one computer running IIS 5.1 with WinXP Pro sp2(the report only shows the first half from left to right side, and the report itself is adjusting the width to the information shown). I debugged the application, the way it works is with a Push method, the dataset is loaded successfully, the code looks like this:
SettlementRDS ds = CreateDataSet();/*loads a dataset into object ds, that inherits from System.Data.DataSet*/
Unified oReport = new Unified();
Note: This is just to mention the way I bind the information into the report.
What I guess about this issue is the possibility of a missing configuration regarding crystal report in iis for this particular computer; i have reviewed as many things as i think without results.
if any of you guys can help me with this, i will be greatly happy.



GeneralGood solution! Pin
ShahNawazMR30-Aug-06 21:34
memberShahNawazMR30-Aug-06 21:34 
GeneralRe: Good solution! Pin
jamesvickers7-Sep-06 9:04
memberjamesvickers7-Sep-06 9:04 
Generalneat article [modified] Pin
pontonet30-Aug-06 3:55
memberpontonet30-Aug-06 3:55 
GeneralRe: neat article Pin
Muhammad Shahbaz Saleem30-Aug-06 17:51
memberMuhammad Shahbaz Saleem30-Aug-06 17:51 
GeneralRe: neat article Pin
vik205-Sep-06 19:45
membervik205-Sep-06 19:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170713.1 | Last Updated 29 Aug 2006
Article Copyright 2006 by Muhammad Shahbaz Saleem
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid