Current location: Hot Scripts Forums » Programming Languages » Windows .NET Programming » Cannot find KeycodeV2.dll, or invalid keycode. Please Help Me

Cannot find KeycodeV2.dll, or invalid keycode. Please Help Me

Reply
  #1 (permalink)  
Old
New Member
 
Join Date: Jun 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question Cannot find KeycodeV2.dll, or invalid keycode. Please Help Me

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.InternalExc eption: Cannot find KeycodeV2.dll, or invalid keycode.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[InternalException: Cannot find KeycodeV2.dll, or invalid keycode.]
CrystalDecisions.Web.ReportAgent.h() +329
CrystalDecisions.Web.ReportAgentBase.set_ReportSou rce(Object value) +224
CrystalDecisions.Web.ReportAgent.set_ReportSource( Object value) +16
CrystalDecisions.Web.CrystalReportViewerBase.set_R eportSource(Object value) +37
WebApplication1.oabrep.Page_Load(Object sender, EventArgs e) in E:\Website\WebApplication1\oabrep.aspx.vb:25
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300
Reply With Quote
  #2 (permalink)  
Old
New Member
 
Join Date: Aug 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Talking Sachin Chaudhari Cannot find KeycodeV2.dll, or invalid keycode. Please Help Me

Solution is u might not have added other mergemodules
1)Crystal_Managed2003.msm
2)Crystal_Database_Access2003.msm
3)Crystal_Database_Access2003_enu.msm
4)Crystal_regwiz2003.msm
when u add last one (Crystal_regwiz2003.msm) then also add license key in license property. it comes when u register or u can get from .net help about dialog box.
Hope
Regards
Sachin Chaudhari
Reply With Quote
  #3 (permalink)  
Old
digioz's Avatar
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,178
Thanks: 3
Thanked 59 Times in 11 Posts
The reason you are getting this error is because the machine that you are trying to run your application on does not contain the drivers Crystal Report needs to run. Here is your solution:

Finding Out What the Crystal Report Distribution Key is on VS.NET 2003:

1- Open VS.NET 2003
2- Click on Help Menu Option
3- Choose "About Microsoft Development Environment"
4- Look under Crystal Reports for Visual Studio .NET, you will see a 19 character number, which is the Distribution Key Code:

Example: AAA00-BB00000-C0000DD

Producing the Deployment Project:

Open Solution Explorer, right click on the “Solution Name” at the top and Add a New Project. On the window that appears, move to Setup and Deployment Projects. Click on Setup Project (not the wizard), put a name for your deployment project (make a note of the location where the folder that the deployment project will be created in) and then click OK. A File System dialog will appear – solution explorer should be displayed on the left of screen. Within solution explorer – right click over your deployment project and select Add – Project Output. Another window will appear – select Primary Output (make sure configuration is showing Active) and click OK. This will result in the detected dependencies being updated & a primary output icon appearing in the deployment project. Right click on the deployment project name again and Add – Merge Modules. Add the following modules.

Crystal_Database_Access2003.msm
Crystal_Database_Access2003_enu.msm
Crystal_Managed2003.msm
Crystal_regwiz2003.msm
VC_User_CRT71_RTL_X86_---.msm
VC_User_STL71_RTL_X86_---.msm

These were the appropriate modules for my application given that I am using VS 2003. Yours may be slightly different.

Right click on Crystal_regwiz2003.msm and go to its properties. Enlarge the MergeModuleProperties tree and enter the product licence key.

Go onto Build – Configuration Manager . Check that the Project & Deployment Project which appear are set to “Release” and the Build check box for each is checked. Build the Project. If all is well the build should show no errors.

If this has gone according to plan you should now have (in the folder specified in the “location” window given when you added your deployment project) a debug and release folder. The release folder will contain:

- setup (application)
- setup (config file)
- an installer package

The release folder is all that is needed to deploy the application on another machine.

Note: The original source of this tutorial was (http://www.vbcity.com/forums/topic.asp?tid=67989).
__________________

Last edited by digioz; 08-22-05 at 03:51 PM.
Reply With Quote
  #4 (permalink)  
Old
New Member
 
Join Date: Jan 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Thankyou very much DIGIOZ, great help worked for me.
Reply With Quote
  #5 (permalink)  
Old
New Member
 
Join Date: Nov 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Crystal Problem

Hi There

In the release folder there is the

1) setup (application)

2) setup (config file)

3) an installer package

do I just copy the MSI to the other machine an install the MSI there ?

because after i did this i got this error message on the other machine im deploying it to.

"A Crystal Reports job failed because a free license could not be obtained in the time allocated. More licenses can be purchased direct from Crystal Decisions or through the Crystal Decisions Online Store."

Thank You
Reply With Quote
  #6 (permalink)  
Old
digioz's Avatar
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,178
Thanks: 3
Thanked 59 Times in 11 Posts
One of the following items may be the cause of the error:

1. You have the Professional Edition of Crystal Reports Installed on the Server, but trying to deploy the Developer Key.
2. You have deployed with incorrect key.
3. You are using the wrong version of .NET on your server.
4. Crystal Report Installation is Corrupt.

Pete
__________________
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Include problem in C bkbenson C/C++ 4 02-08-05 05:24 AM
how to find control in placeholder nnet ASP.NET 0 01-14-04 12:44 AM
calendar working until months changed bitesize JavaScript 1 01-13-04 02:50 PM
changing a specific dateformat in tigra bitesize JavaScript 0 10-30-03 09:58 AM


All times are GMT -5. The time now is 06:56 AM.
vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.