Get your Crystal report working on your customers server (Cannot find KeycodeV2.dll, or invalid keycode)

Actually I do like Crystal Reports. It may not be perfect but the way it works with datasets, its grouping a selecting options and the web report viewer are very workable. Deploying Crystal Report to a web server is another story.

When you test your app on your localhost all seems to be working well but when the app is installed on the webserver it produces the notorious Cannot find KeycodeV2.dll, or invalid keycode error message. The Crystal site has loads on support on that which tells you to update some registry settings. There is a big chance that you will not find these settings. What to do next is hidden a lot better in the docs.

The crystal viewer uses a couple of dll's which are installed on your development machine. They are part of CR for VS.NET but not of the .NET framework. If there is no vs.net installed on the webserver these files will be missing on the server. A deployment project in VS.NET will not see the dependencies and will not include them in the setup. What worked for me (destilled out of the loads of CR docs) was creating a setup project with a couple of merge modules

  • Crystal_Database_Access2003.msm
  • Crystal_Database_Access2003_enu.msm
  • Crystal_Managed2003.msm
  • Crystal_regwiz2003.msm
  • VC_User_CRT71_RTL_X86_—.msm (used for reports based on ADO.NET)
  • VC_User_STL71_RTL_X86_—.msm (used for reports based on ADO.NET)

The regwiz module has an License key property, here you enter the Crystal license key found in the help about of VS.NET. It will read something like AAP50-GS00000-U7000RN.

Installing this dummy app will enable CR in all your webservers applications. On one server the setup was a webapp, on another server we had to create a Windows forms setup before the server would see CR.

Blog on, Peter

This entry was posted in Out+of+control. Bookmark the permalink. Follow any comments here with the RSS feed for this post.
  • Anonymous

    I don’t know how you deployed the application. Without an installer ? Is possible, but why ? Creating a setup project in VS should be no problem at all. I suggest you create an installer and include the needed module. After which you can _update_ your application on the server ?

  • Anonymous

    Hi Peter, We are moving the application from Windows server 2000 to windows server 2008. When we are trying to export a report (Crystal Report ) to a PDF format, we are getting the same  “Cannot find KeycodeV2.dll, or invalid keycode error message”. As per your above article, we have to create a set up project with a couple of merge modules but we have already deployed the application on Windows server 2008 server. Now, we cannot create a set up project. Plz advice if there is any way we can install the merge modules without creating a set up project. Your help will be highly appreciated.

  • Samudrala Sureshkumar

    Thanks Every Body, I fixed the invalid KeyCodev2.dll by adding  below  Registry keys , it was missing in some VDI’s

    * HKEY_LOCAL_MACHINESOFTWARECrystal DecisionsCrystal ReportsVSNETKeycodes
     
      HKEY_LOCAL_MACHINESOFTWARECrystal DecisionsCrystal ReportsVSNETKeycodesCR9 NET
     

  • sha

    hi, i am using VS 2003 with crystal report.
    i create a web site with report for my client and upload to web hosting. and it give me this error :–

    Cannot find KeycodeV2.dll, or invalid keycode.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: CrystalDecisions.CrystalReports.Engine.InternalException: Cannot find KeycodeV2.dll, or invalid keycode.

    Any idea what should i do?

  • sachinc

    hi all i want to create installer
    firstly which checks .Net framework2.0 is installed or not if not
    install .Net Framework
    second install my application
    and third check that crystal report 8.5 is installed or not if not install crystal report 8.5

  • Subramaniam

    Hi am using the vs2008 and for reporting v use the crystal reports that available in .netfrmework 3.5 while hosting in server it gives the error CRREDIST*. some error .
    pls give me the solution to clear this problem..
    I want to generate the reports for web applications.
    Whether i want to vs2008 in server or else//…?
    pls give me the solution…

  • dezcoal

    Maybe I was not that clear… I mean that I did the whole registration, the merge modules, that you said and this keycode error was solved very well for XP, but when I use the same setup for Vista I have the same keycode error again. I looked for the new merge modules on support.businessobjects.com/downloads/merge_modules.asp (CrystalReports11_5_NET_2005.msn 80MB by the way =O =O) and used the same Crystal_regwiz2003.msn for the registration (because its the same Visual Studio 2003 with his own Crystal Reports)

    But I have the same keycode error again =( =(

    Any help

  • dezcoal

    Still it does not works for Windows Vista !!! I have my app on Visual Studio 2003 and it works fine on XP but not when I run my app on Vista pc’s !!!! Any help???

  • Fahad Zaki

    Thanks man.
    Thanks for sharing.
    You have a good heart.

  • Noobie

    Hey, i included the merge modules in the deployment project and that worked .

    However now, while exporting it to pdf it gives me error – access to ‘C:\DOCUME~1\FFUK\ASPNET\LOCALS~1\Temp\12-234′ denied.
    deployment machine has Win2003 server,
    Also I have one more asp.net application on the same server already and crystal report has been working fine on it from a long time with export function as well.

    Please advice.

    Cheers

  • sean howe

    Newbie question here. When we create a report, save it, when we execute it it takes us back into the report developer. How do we get it to run when we double click the report instead of going into developer?

    Thank you.

  • SSR

    Hi,
    I’am getting this error while I try to view a report in the CR viewer
    There was an error retrieving data from the server: File frs://Input/a_056/003/000/824/~ce150c43a5b57562a6.rpt not found on File Repository Server.

    I’am stuck with this problem since a ling time…
    Need help, please……

  • http://codebetter.com/blogs/peter.van.ooijen/ pvanooijen
  • José Wilson

    Hi Peter,

    I´m using crystal reports 10 in my web server and i´m getting the error “The maximum report processing jobs limit configured by your system administrator has been reached”.

    I google and try a lot for os solutions and nothing.

    Did you experienced something like that?

  • http://vijirajamiyer@hotmail.com VIJAYA

    Hi,

    It is wonderful to get result as soon as possible.

    Thnaks to all

    Best Regards
    VIJAYA

  • http://vijirajamiyer@hotmail.com VIJAYA

    Hi Anybody,

    I installed my product in Server PC. I am using Crystal Report to display the records. In Server Crystal Report is working. Same procedure i did in my Client PC. But in my Client PC Recrod not showing.
    My Customer is wating for my valuable answer. I tried in several ways, but i could not get the result.

    What to do? Is anybody is there to answer plz.

    Best Regards
    VIJAYA

  • Zeenath

    sir
    My crystal report is showing error- page cannot be rendered. the reports contain some long text like certificate which I typed in a textbox control. when this text box is removed the report works fine but with the text box it shows error in the browser. Is it the problem with page setup or anything else. can u help me. this is very urgent. can u pls send ur answer back to my id – mail2zeenath@gmail.com

  • Ram

    Hello,

    I have developed a crystal report in my windows app, it is working fine when i deploy on client machine as long as the OS is XP or 2000, but trouble started after I installed in on Vista. For some reason the keycodev2.dll is not getting registered on vista. maybe over security of Vista is avoiding it to register the dlls? Did anyone find a solution of a quick fix for this?

  • Sunil

    I want to know which dll are required for viewing report s which are created in Crystal report XI

  • http://kpreddy108@gmail.com kpreddy

    hai,
    when i install client system
    cannot find keycodev2.dll in vb.net deploy application

  • nikki

    i have developed windows application in vb.net.when i run the crystal report on the developer pc its working fine. when i run the report on client’system its not working .it says “can’t find keycodev2.dll or,invalid keycode” error.plz help me
    thanks

  • http://putxi.wordpress.com The Putxi Project

    I can’t find the field property LicenseKey where to put the key…. anyone can tell me how to find it in the VisualStudio 2003? Thank’s

    putxi.cat2@gmail.com
    http://putxi.wordpress.com

  • Junkdrawer

    OK:

    For the hardcore cases, check to make sure this key is there:

    HKEY_LOCAL_MACHINE\SOFTWARE\Crystal Decisions\Crystal Reports\VSNET\Keycodes\CR9 NET

    I went nuts until I found that, for some odd reason, the installer I made didn’t create the last two parts of the key.

    More details on this key here at KB c2010777

    http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=http–supportbusinessobjectscom-communityCS-FilesandUpdatesNoNav-crnetkeycodefixzipasp&sliceId=&dialogID=19522135&stateId=1 0 19518537

  • Manoj

    Its allworking for me but still i does not get key code of crystalreport

    Does Any body Then told me how get ?????????????

  • darkside
  • http://codebetter.com/blogs/peter.van.ooijen/ pvanooijen

    @Summant: Start a blog ! That’s _the_ way to share !

  • sumant kumar

    Thanks a lot…….. Great Yaar !! you had done great job !!…………

    i have also some script such as … how to store and retrieve images from database……….insert checkbox,dropdown in datagrid…………….restoring and backup of database on button click…..

    And many more… on which i had faced problem….. i want to share with others who are facing problems in it.
    Please feel free to ask to me…. at sumantbaranwal@yahoo.co.in
    Thanks again This code really worked for me……………!!!

  • http://jainsachin22@yahoo.com Sachin Jain

    hi..
    I am crystal report in my .net 1.1 app. with connection setting to my local server Now i want to know When im uploading my application on server whose sql server si differnet than my local so what thinds i need to change as i cant verify database for my crystal reports as we dont av VS.net installed thr so how can I run my crystal report. I m using this code in cs file
    crconnectioninfo.ServerName = “AO”;
    crconnectioninfo.DatabaseName = “GRExpo_db”;
    crconnectioninfo.UserID = “GRL”;
    crconnectioninfo.Password = “grl123″;

    But on Client server DB server name is “Cserver”……

  • http://codebetter.com/blogs/peter.van.ooijen/ pvanooijen

    I still think it’s a rights problem. Using CR you’re, reading between the lines, accessing the DB under your user credentilas, unders asp.net under the asp.net acount. The asp.net accoutn has limited rights.

  • chary

    Hi pvanooijen, thnx for the reply…
    all images are stored in database (sql) itself. Interestingly if I run the report from crystal reports it shows the report correctly with image, but from dotnet application its not showing at all. “FAILED TO RENDER PAGE” is coming from application.

    Hope I can get a solution now from you.

  • http://codebetter.com/blogs/peter.van.ooijen/ pvanooijen

    I bet this is a rights problem. Are your images stored in a folder ? With the appropiate rights to read them ?

  • chary

    i developed dotnet application with c# and crystal reports and deployed on server. its working properly in our test machine, but failing to load report on server when there is image fetching from database. in all other cases if there is no images its working even on server.
    Anyhelp is gr8ly appreciated.

  • pgaynier

    Thanks Peter. Installing crystal through a WINDOWS setup project INSTEAD of a WEB setup project did the trick for my web server.

    I no longer get the “cannot find keycodev2.dll or invalid keycode” error!

  • http://balyan.sudhir@gmail.com Sudhir

    i have same problem
    cannot find keycodev2.dll or invalid keycode
    plz help me
    and tell me how can i register or set .msm
    files on client

  • http://codebetter.com/blogs/peter.van.ooijen/ pvanooijen

    There’s only one answer: just try it :)

  • lfryan

    Hello Peter:

    I have what may be a naive question. I created a dummy web setup project in VS 2003 with the merge modules that you suggested so that I could get the correct dll setup on a web server. When I install the project on an IIS server, it puts a bunch of dlls on the machine in c:\program files\common files\crystal decisions\1.0, but does not appear to install such dlls as CrystalDecisions.CrystalReports.Engine.dll, CrystalDecisions.Shared, etc. in c:\program files\common files\crystal decisions\1.1. Why aren’t those installed along with the others? Do I assume that they are not necessary to run a Crystal Reports web app?

    Thanks for any help!

  • Syed Jehanzaib Naseer

    Well i have deployed my ITMS application on net work but unfortunately i have an error whch is Assemblies of crystal report or Keycodev2.dll, acutually how can i get free licence 2 solve this problem

  • Yuri Kiselev

    Thanks, Peter, for simple and working solution ! I solved my problem in 10 mins. By the way, adding the same modules to setup project (not making separate one) also works…

  • Ashwini Nayak

    Hey frnds I m in a fix please helpme out.
    I had adevelpoed a program using vb 6.0 and crystal 9.2, but now when i am deploying it at the customer site. the reports are not working, even if i had added all the dlls and ocx in the s4etup creation needed for the crystal. can any body suggest me abt a merge module available for vb6.0 and Crystal 9.2. my e-mail id is “ashtechnology@gmail.com”.please mail me.

    please help i am in need.

  • sylvester george

    Thanks you very much!

  • http://codebetter.com/blogs/peter.van.ooijen/default.aspx pvanooijen

    Vasim, the key for VS is provided in VS, an example is provided in the body of this post.

  • Vasim

    Hi all,
    I want the registration key for Cysteal Report 9,
    Can any body provide that,
    my eid is vasim.secret@gmail.com

  • Nguyen Phuc Nguyen

    Hi,

    It’s very useful. Thanks very much.

    BTW, I’m facing a problem with subreport deployment. All reports without subreports are OK on both my site & Clients site. In the otherwise, the reports with subreport show incorrectly on Clients (some fields missing) although it’s normal on the developers’ computer.

    I think there’re other components we missed but I found nothing.

    Have you met it and solved it?

    Thanks.

  • http://carrier.org Doug at CC

    If all else fails try

    http://support.businessobjects.com/downloads/merge_modules.asp#07

    You can download all necessary files in one neat package and then create a setup file or msi. Works great with visual studio 2005 even comes with a word document on how to.

  • Rajkamal

    Still it is showing “Cannot find KeycodeV2.dll, or invalid keycode”.

    I have gone through all the steps (Creating websetup , Adding merge module, Setting Licence key, Registering keycodev2.dll and creq.dll , giving permission for crystal decision bin folder to everybody, changing machine configue(username property value machine to system),i tried licence key with and without hyphen,and registry permission)
    Everything i have given, still it is not working.

    I have developed my application in windows XP SP2 system.

    I deployed my application on another Windows XP SP2 system(without .net) it is working.

    I deployed my application on Windows 2003 server, It is giving
    “Cannot find KeycodeV2.dll, or invalid keycode” Error.

    It is so frustrating. Please anyone help me to solve this problem.

  • http://rathanaklim@yahoo.com nak

    i have problem with crystal. it not work in my client machine

  • Memotron

    I TRY with License key 1231467890

  • Bipin Agrawal

    Hi All,

    Thanks for solution. But It is not working for me. I don’t know it is my luck or any error I am making during deployment. I had tried every solution given in this article. But I am unlucky to get solution. So Please if any one can provide me solution, I will be very thankful. Here I want to mention one thing that I had developed my reports in Crystal Report 8.0 and I am using this reports in .Net. As it is very urgent please help me. You can send me soltion on agrawal_bipin@yahoo.co.in.
    Thanks in advance

  • Shamim

    I cannot find the license number of Crystal_regwiz2003.msm property

  • Mahmoud El Ragaby

    good solution , thanks

  • http://codebetter.com/blogs/peter.van.ooijen/ pvanooijen

    Pradyot : No way ! You just have to get CR upo and running and, as all these writing should make clear, that’s no fun. After that you can copy your reports.

  • Pradyot

    Let me know how to run crystal report from web server just by making a copy in the wwwroot folder of a site and not deploying it. Is that possible? Becasuse everything is running fine after uploading required pages using ftp except the crystal report.

  • fLim

    I hope this thread still works, and that the author gets an update from his threads.
    So. Web application, project setup, permissions over the registry, and all that.

    Still can’t work. I deployed my project on a Windows 2003 Server, did all that, and still doesn’t work.

    Over Windows XP it works perfectly, I mean, over a clean pc (no Visual Studio, no Crystal Reports, etc)

    Anybody else has this problem?

  • Sudhakar

    ***** (5 star) your comments “It will read something like AAP50-GS00000-U7000RN.” helped me a lot, I was trying with registration key 8888888888(10 digits) even Crystal reports (Business Objects) says to use this key which was sent through the email, but it did not worked, then I used the license number (vs.net 2003) it worked. Thanks again.

  • KR

    Discovered the image loading problem with regard to viewing Crystal Reports via ASP.NET. Refer to this article if you experience the same issues I did:

    http://aspadvice.com/blogs/crystal/archive/2004/09/27/2223.aspx

    Thanks everyone for your very helpful posts!

  • KR

    Following up on my previous post, it turns out that removing the dashes from the license key code when adding it to the Crystal_regwiz2003 merge file license key property was indeed the problem. The report functionality works fine, except…

    The report navigation tool bar images (First, Prev, Next, Last, Go To, ‘Powered by Crystal, etc…) are not being loaded when I run the report. I have:

    1. Verified that the root_directory:\Program Files\Microsoft Visual Studio .NET 2003\Crystal Reports\Viewers\images\ToolBar folder exists on the server, and

    2. The ASPNET account has read privileges on the folder.

    Is there anything else that I need to configure or be aware of?

    Thanks!

  • http://codebetter.com/blogs/peter.van.ooijen/ pvanooijen

    thanks.

    For some things Crystal does need write rights. To write a temporary file to a scratch dir. See my post on exporting from Crystal
    Do check the machine config.
    The WIndows insatller is OK to insatll just the Crystal stuuf. You need a web insatller to install the web app itself.

    And in the end : use SQL reporting services. I ran away from Crystal and am happy with RS

  • KR

    Good article. I have created a (Windows) setup installer with the specified merge files for my web application, installed the files on the web server that hosts my developement web-based application, and established the the keycodev2.dll is registered and that the ASPNET account has priveleges on the appropriate directories. I have also validated that there are no versioning conflicts as well. However, I still get a “Cannot find KeycodeV2.dll, or invalid keycode” error.

    From reading the previous responses to this article, I may have located at least two reasons for the continued error, and a few unknowns:

    1. One contributor stated that removing the dashes from the license key information on the Crystal_regwiz2003 merge file license key property fixed his error. I have not (I cut and pasted the license information into the property).

    2. the ASPNET account has read privileges on the root_directory:\Program Files\Common Files\Crystal Decisions\1.0\Bin folder where the .dll resides, as opposed to ‘Everyone’.

    A third problem could be in the machine.config file in the the .NET Framework environment; I’m not sure that the username in the processModel section is set to ‘System’.

    Finally, I used the windows vs. web installer to deploy my web application. The application works fine except where it tries to utilize the CrystalReports functionality. Could the setup installer project be an issue as well?

    At any rate, should I validate all of these potential problems?

    Thanks in advance!

  • http://codebetter.com/blogs/peter.van.ooijen/ pvanooijen

    There is no way to CR running without fiddling on the hosting server. Just copying files is not enough.

  • Mendy

    Is there a way of getting crystal to work on a web hosting site. The site doesn’t have CR and they won’t run an install file for me. I’m trying to just copy the files over but I’m still getting the keycode error message.

    any help would be greatly appreciated,
    Mendy

  • Anita

    Forget my previous post. Finally I got it working! For some unknown reason I had an extra 1 in the beginning of the keycode. I knew it had to be something this dumb! Grrrr!

  • Anita

    I have tried every single suggestion in this blog and I still get the same keycode message.
    Here is a list of things I tried:
    installed the crystal components using merge modules including the regwiz2003 module with the license key (I tried with and without dashes)
    tried to suggested change to the machine.config file
    plus I tried every single thing businessobjects posted for this problem (e.g. registry permissions)
    I’m trying to do this on the 2003 server, the app was developed on XPSP2. I am using the bundled version of CR with VS2003.
    I am about to tear my hair out, it is so frustrating. Anyone has any other suggestions that may work?

  • Fred

    Rebecca,
    I’m getting this issue at windows server 2003 too, can you give me more detail please? somebody said the user is NETWORK SERVICE instead of ASPNET here… thanks.

  • Chris

    Peter

    Can you shed some light on what to do with the dummy app ? I created one as a project within my solution, re-built and copied the dll back but still the same issue. Does the dummy app need to be created separately from the solution, if so where should it be put on the webserver, in the root ?

    Thanks

  • Rebecca

    This issue plaged me for several days on a Win2003 system.

    The solution ended up being giving “EVERYONE” read permissions on the folder C:\Program Files\Common Files\Crystal Decisions\1.0\bin where the keycodev2.dll file resides.

    Cheers.
    -R.

  • Risto Krulj, Belgrade, SCG

    Thanks, man! This resolved my problem!!

  • Burkni

    Thanks a lot, I am using Windows Forms and the regwiz2003.msm seems to have been my problem. Mind you, it can conflict with license.msm (which seems to do exactly the same thing) but if license.msm is added after regwiz2003.msm, it seems to work :)

  • sridhar

    Great Article Solved a big issue. the issue seems to be regading Keycode and everybody looks in REGEditor, but this article solved my problem..
    thanks once again..

  • http://codebetter.com/blogs/peter.van.ooijen/ pvanooijen

    This solution is specific to the CR which comes with VS 2003. Every cr is different. Instead of looking at the CR 10 trial I would consider sql reporting services.

  • Pradeep Kotwal

    Hi…
    I still can’t get Crystal running on target machines as the very frustrating “Cannot find KeycodeV2.dll, or invalid keycode” keeps appearing. Client M/c has VS.NET 2003 and Crystal Report 10.0 Trial Ver. Installed. How can identifing the Installed component (specially CR Ver) on Target m/c.

  • Madhavi

    We have done the setup as you suggested. But still it is giving the same error. Deployment machine has .net framework 1.1 and crystal reports 9.2 installed. We are using Visual Studio 2003 for creating the setup. Please help in solving this problem.

  • http://gvargas2005@yahoo.es Guillermo desde Bolivia

    Thanks Peter! Error Fixed.

  • http://codebetter.com/blogs/peter.van.ooijen/ Peter van Ooijen

    I lack the supernatural powers to monitor your uploads. I’m sorry :/

  • Prajakta

    I tried with creating setup project to solve the same problem. But still not working. It is giving as error as:

    Parser Error: File or assembly name CrystalDecisions.Web, or one of its dependencies, was not found.

    Plz tell me the procedure to upload setup project on web server. i think i m missing something while uploading, or is it any other problem?

    Plz Do Help Me.

  • Aravindan.N

    Hi,

    This archive is highly informative.

    Thanks dude.

    Keep going…

  • Ming Lam

    Its great and very helpful, Thanks!

  • Peter van Ooijen

    It is a Citrix problem :)

    Wild guess: Citrix makes Window search for dll’s on the client PC instead of the server ?

  • Neil Jefferson

    I hope someone can give me a clue why the keycode error occurs when accessing a report through a Citrix frame server. The report runs fine when using the server directly but fails through the terminal viewer.

    Any ideas where to start? The preceeding comments were an enormous help in getting this far.

  • Peter van Ooijen

    This post, the comments and the links. That’s "all" there is :)

  • Peter van Ooijen
  • harsh

    if any one can help me then plz sed the solution

    thanks in advance for giving your valuable time.

  • sunny

    Hi guys and girls

    i cannot run crystal report on client machine. Whenever i try running it it gives me error which is the same one as above. I tried running regwiz but no good…can there a solution to this..pls let me know….

    sunny

  • Peter van Ooijen

    My suggestion is to build a CR deployment package independent of your apps. Needed once So Asp. NET (and all your apps running on that) have CR.

    CR installment is independent of your apps. When CR works in one app and not in another you are dealing with another problem. When you move your app to another drive you’ll have to inform ISS where it has gone. The virtual dir mappings should be changed.

  • Himani

    one more question peter,if my production server already has web applications installed in them with the correct license key,and when i go to install a new application if i specify the wrong license key,will my application show the crystal report correctly.The reason why i ask this is that my understanding says that the merge module license key only installs the correct version of crystal dll in the gac,so if its already done due to previous applications running (Which were bult using the same crystal reports version)on the same server.

    Another question is what if i move my installed application folder to say another drive say D: drive.What will happen in that case ???wrt to crytal reports ??

  • Peter van Ooijen

    hi,

    hard to say exactly but it smells like a registry problem. The ole objects not being registered properly.

  • Himani

    Hi Peter

    I am having a web application built with microsoft visual studio.net 2003 having crystal reports for visual studio .net 2003.

    On running the application at the production server,the report viewer object does not show the refresh button, the Goto page button ,and all the images as ole objects have vanished.

    Why is this so??

  • Mike

    Excellent , solved an issue I had

    Thanks

  • Ronnie Kleinfeld

    Thanks,

    I’ve been working on this for at least 1 week

    That just a great idea you have here

    Ronnie

  • Victor Ramírez

    This is a killer tip!.. Thanks

  • Rui Santos – Portugal

    Just a note for everybody who haven’t solved the problem yet:

    let’s say your license key is

    AAP50-GS00000-15M00FS

    don’t forget to remove de "-"’s

    ex: AAP50GS0000015M00FS

    this was the solution for my problem.. a bit lame i might add..

  • Venky

    Thanks and it helped me a lot

    venky

  • Web development

    You’re wanderful, I tried many solutions neither worked till I got this solution. Thanks a lot.

  • Peter van Ooijen

    I don’t think so. Apart from the technical side. The license key is your license which comes with VS. It’s not the users license.

  • Raj

    Hi this discussion board was a lot helpful since i had the same issue. Can we prompt the user to give the license key?. ie the key should be give dynamically.. plz help

  • Adamo

    I’ve followed all the solutions on this page but I still get the "cannon find keycodev2.dll" error. I am trying to deploy to my web server. I copy the files from my local machine to the wwwroot folder on the server. I’ve included the setup project the msm files. I have .net framework 1.1 installed on the server. Any help is appreciated.

    Thanks

  • Loren & Pablo

    hi

    we only want to say THANKS A LOT for the solution.

    you save our lives.

    we were trying to fix this problem with the reports the whole week.

    thanks again.

  • Peter van 0oijen

    CR on Windows is comparable but does work different. I think your windows setup needs a CR setup. But I don’t know what goes in there.

  • Somayeh

    hi,

    i have the same problem but my app is not webapplication it is windows application..will this solution work for windows application too??

    please help me!

  • Peter van 0oijen

    You’re welcome :)

  • Kristyn

    Super tip easiest most straight forward fix I have seen in a real long time!!!! Thanks

  • martin

    Ping Back??:blog.csdn.net

  • Kristina P

    Solution worked for me also, just adding the gotchas that caught me as a newbie to this IDE.

    At first I didn’t understand "create a setup project" but I found it – New Project, and choose Setup/Deployment type. Also I got the dreaded "Licence Key cannot be nullable" but could not find where to set it. Turns out the View window for the solution (which lists the merge modules) was off. When I turned it on from the View menu, and clicked the + sign next to properties, I found it.

  • Kundan

    Hey man !

    Your suggestion really worked wonders !

    The problem is solved on my machine too…

    Great Going ….

    Thumbs Up !

    Kundan

  • Bruce Tank

    I have tried to create my own merge module project and add these files, so I would have just one merge module for my deployment package.

    No dice.

    The funny thing is that the merge module properties are NOT exposed if these are in a merge module project. The properties DO get exposed when they are in the deployment project, rather than the merge module project.

  • Peter van 0oijen

    Ftp the msi to the sys-admin ? :>

    I think you (or someone else) has to run the installer on thr machine, I wouldn’t trust xcopy deployment to do the job her.

  • Wayne Russell

    I have created web install project has you have suggested but how do I deploy on server with only ftp access

  • Zandi Zungu

    I created the deployment package using the correct merge module and entered the correct license key, however, I still had the same error "Cannot find KeycodeV2.dll, or invalid keycode"

    I’ve checked that my assemblies are all of the same version and also unregistered and re registered various dlls including keycodev2.dll but it did not solve my problem.

    The ultimate solution was installing Crystal on the server where I’m trying to deploy my web application. This works! Consumes space but at least it works!

    plz any one help what can I do

  • Zandi Zungu

    I created the deployment package using the correct merge module and entered the correct license key, however, I still had the same error "Cannot find KeycodeV2.dll, or invalid keycode"

    I’ve checked that my assemblies are all of the same version and also unregistered and re registered various dlls including keycodev2.dll but it did not solve my problem.

    The ultimate solution was installing Crystal on the server where I’m trying to deploy my web application. This works! Consumes space but at least it works!

    plz any one help what can I do

  • Matt (Frustrated)

    Just found a little help file may be of use. PDF format http://support.businessobjects.com/communityCS/TechnicalPapers/crnet_deployment.pdf

  • Matt (Frustrated)

    Heres one for you guys ( and gals). Built a db access prog in vs.2003, coleague developed a viewer for it in c# goes into project fine, runs on development network OK. The got keycodev2.dll error, included merge module now it can find the dll, however, its now telling me it can’t find an available license. I’ve looked for the license key property in the regwiz.msm but I can’t find it. Anyone help????

  • Sinan Sonmez

    Windows form setup worked fine on my Web Application… Thanks for the help, remember to enter the Licence Key for regwiz2003

    Modules I’ve included are :

    Crystal_Database_Access2003.msm

    Crystal_Database_Access2003_enu.msm

    Crystal_Managed2003.msm

    Crystal_regwiz2003.msm

    VC_User_CRT71_RTL_X86_

    VC_User_STL71_RTL_X86_

    thanks for the help mate, saved my life

  • If All Else Fails Look at the Machine.config. All

    Had the same Problem.

    Solution: In the Machine.Config(C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIG)file

    Under the TAG <processModel … />

    Change the Username to "System"

    Why?

    Allows the Process to access all of the Registry Settings…

  • Dean Stelow

    Excellent advice. Thanks.

  • Beti

    after adding registration number and all merge modules I do still have the same error:

    Cannot find KeycodeV2.dll, or invalid keycode

    What else, please?

  • Nadeem

    I have successfully installed VB.NET and Crystal report on my machine , now when I add the crystalreport.rpt from the add item option it doesn’t work, nor does it shows any error. Please help me in this.

  • Jai Sevin

    I ran into this problem..and finally got it to work on our test server.. But now I’m getting the error when trying to put into production. I’m using the same dummy web app to install the merge modules that i used in test on our production server but no dice..is there any other things I can look for

  • Jonathan Miller

    This finally fixed my problem! Thanks again!

  • Peter van Ooijen

    Thanks.

    I beleive the integration to be only skin-deep. It is tough skin with a lot of wrappers but I’m not sure about what’s inside. Lots of COM ?

  • Guru

    Hi Peter, and thanks for the magic tip. I had to resort to the second option (installing a dummy Windows Form App with the reqd. CR modules).

    My quirk : if CR and VS.net are so tightly integrated WHY can’t that &*#$ regwiz.msm pick up the 19-digit itself?

    Anyway, thanks for the info, especially for putting it concisely and lucidly unlike most obfuscated CR documents available.

    Cheers – Guru.

  • Alan

    Srinath, its in the properties window after you include it in your setup project and expand the mergemoduleproperties. Let me know how it goes cause i could never get my winform app to work even after i installed a clean xp with just .net.

  • Srinath

    hey

    iam trying to do some the same, trying to deploy a vb.net system to the client side.

    every one tell the same add the 4 or 5 files as above.

    i have one small problem Crystal_regwiz2003.msm does not have a license Key property can any one help me srinathk7@hotmail.com

  • Srinath

    hey

    iam trying to do some the same, trying to deploy a vb.net system to the client side.

    every one tell the same add the 4 or 5 files as above.

    i have one small problem Crystal_regwiz2003.msm does not have a license Key property can any one help me srinathk7@hotmail.com

  • Peter van Ooijen

    Haksin, Switch to 2003. Then you’ll be in the same mess as everybody else :>

  • haksin

    i have not find these .msm in my computer.

    i am using .net2002

    plz. help me

  • rtrtr

    haleluza

  • Alan

    can anyone provide me with a simple vs.net solution containing a winform app with a crystal report and a setup project? I have installed a clean xp with just .net framework and i keep getting the keycodev2.dll error even though i put in the key in the merge module and followed that crnet_deployment.pdf document. thanks.

  • Patrick

    I’m running into the same problem, and I’m using the references version 9.1.5000.0 from crystal decisions in my solution, I’m using VS 2003 and the framework 1.1.

  • Peter van Ooijen

    It is a mess. There are several version of CR, several versions of the framework and there is web-based CR versus a Winform based.

    I have managed to get the CR which comes with VS.2003 to work on a web-server. And I know that the solution for all other combinations is different…

  • Sebastien

    I have made an application in Visual Basic.net that uses Crystal Viewer to run some reports. I have no problem running the application on the machine where it has been developped or any machine that has Visual Basic.NET and Crystal Report 9 installed.

    But when I tried to deploy my app on a computer without Crystal Report 9 and only the right Framework, I had a TLV Record Error. I am using Crystal Report 9 and i have included the merge module that Business Object give :

    Crystal_Database_Access2003.msm

    Crystal_Database_Access2003_enu.msm

    Crystal_Managed2003.msm

    Crystal_regwiz2003.msm

    I still have the same problem. I thought it might be because i’m missing these 2 modules event thought i’m not sure i need them :

    VC_User_CRT71_RTL_X86_—.msm (used for reports based on ADO.NET)

    VC_User_STL71_RTL_X86_—.msm (used for reports based on ADO.NET)

    But i can’t find them and now my app needs to be delivered… it’s getting quite urgent.

    What to do? Help me please!!

  • Dave M

    THANKS BUDDY! Top shelf help!!

  • Tom Shokite

    Well I have an update. After trying, and I mean many times, I finally got it to work. Seems I have been running on an older version of Visual Studio .Net, from an install off of the MSDN site (subscriber), but it was an older version. I removed that older version completely and reinstalled the latest version of Visual Studio.Net. Then I downloaded the following writeup from: http://support.businessobjects.com/communityCS/TechnicalPapers/crnet_deployment.pdf

    It is very well written and holds your hand throught the process (forget the other documents on the internet as they kind of waist your time and are incomplete) :)

  • Tom Shokite

    I still can’t get Crystal running on target machines as the very frustrating "Cannot find KeycodeV2.dll, or invalid keycode" keeps appearing. I’ve even tried to copy about 20 registry keys, from my development machine to the target machine and that still did not work. Installing VS.NET on the target machine is now the only way I can use Crystal. So I simply resorted to not using Crystal and now at least my application works and to hell with Crystal. I will look for another way to get out the reports. Adobe’s Acrobat, which I used to use when I programmed with C++, did work. I’m programming utilizing C# and Window Forms. tshokite@comcast.net :(

  • Tzury Bar Yochay

    Couldn’r Business-Objects write it as descriptive and detailed as this one?

    The rule is: With third-party controls you mostly need third-party developer for troubleshooting.

    PETER – THANK YOU VERY MUCH.

  • Peter van Ooijen

    Thanks Tzury. Keeps me of the streets :>

  • Tzury Bar Yochay

    Couldn’t Crystal Creators write it in a descriptive way in thier support KB as Peter?

  • Phil

    There are different sets of MSM files depending on whether or not you are using the full versions of Crystal Reports, or the embedded version in VS .NET.

    The following pdf has all the information you need:

    http://support.businessobjects.com/communityCS/TechnicalPapers/crnet_deployment.pdf

  • Peter van Ooijen

    The original post concerns web-apps. Once fixed (on the web server) it’s fixed for all clients. Once fixed for one web-app it’s fixed for all webapps.

    It’s an overkill to include the the assemblies in the setup of every web-app. To big (> 10 mb)

    Some day I’ll look at running Crystal in a Windows .net app.

  • Vikul

    Can anybody tell after all these problem is it possible to install an application in .net on client machine without any error like Keycode.dll.

    Thx

    With Gr8 Regards

    Vikul

  • Peter van Ooijen

    My experiences are limited to running Crystal on a web-server. Did you check the other thing s?

    http://dotnetjunkies.com/WebLog/petergekko/archive/2004/02/24/7846.aspx

  • Kavita

    Hi,

    We have developed a .net application in C# and VB.NET (Visual Studio 2003). when we install the Application on a Tablet PC with Operation System Windows XP, the reports which have even one subreport are not working with the error "Object Reference not set to an object".

    We are using the ReportViewer component of .net. We tried creating the install of the Application with both Visual Studio Set up projects and also with Installshield express.

    When we installed our application first, we got keycodev2.dll error and that has been resolved and after that we are getting this problem.

    We also used the latest Crystal Report merge modules and compared the DLLs using Modules.exe from Crystal Report Site in 2 scenario – one while running the Application from Visual Studio on the tablet PC when the reports work properly and the other one with the installed exe created from the same source which is working on the same tablet PC. The number of Dlls are more when the Application runs from the installed exe but all the dlls in use in the other scenario are present here. We checked the versions of dll also in both the cases and they are same.

    Please suggest what to do.

    Thanks in advance.

    Kavita

  • Prashanth

    Thanks a lot.. Working without any problems.

  • Ben

    Thanks a TON! Error Fixed.

  • Peter van Ooijen

    You’re using a different set of msm’s.

    Did you check registration ? Of the setup package and in the registry ?

  • imtiaz

    i have made deploy packege and added modules with merge module option the modules are

    crnetruntime.msm

    license.msm

    mapping.msm

    reportengine.msm

    VC_User_STL71_RTL_X86_—.msm

    VC_User_MFC71_RTL_X86_—.msm

    VC_User_CRT71_RTL_X86_—.msm

    VC_User_ATL71_RTL_X86_—.msm

    and I have run setup on server machine but still same error

    comming

    Cannot find KeycodeV2.dll, or invalid keycode

    plz any one help what can I do

  • Peter van Ooijen

    This story deals with CR on an asp.net server, client side is another story.

  • Biswajit Jena

    Hello,

    In VB.NET my crystal report is not working in client machine.

    Please give me the detail informations.

    Regards

    Biswajit

  • Peter van Ooijen
  • imtiaz

    i have same problem

    cannot find keycodev2.dll or invalid keycode

    plz help me

    and tell me how can i register or set .msm

    files on client

  • Sasha

    This is fantastic, resolved the problem that I had for more that a year. Thanks

  • te

    <script>Good script</script>

  • Peter’s Gekko

    Exporting from Crystal Reports to PDF, Word, Excel and HTML

  • Gr8

    Really cool man….Thanks

  • John

    5 Stars!!!!!! You are the man! This was very helpful, thank you!