Link to home
Start Free TrialLog in
Avatar of RangerLad
RangerLad

asked on

Cannot find KeycodeV2.dll, or invalid keycode.

Hi Experts

Found lots of articles/tips to solve this one but none have worked for me, if anyone can stick with me and help solve this then there is 500 points and my humble gratitude in it for you.

Heres what I have; Created a Crystal Report using the bundled version that comes in VS 2003. I have registered Crystal and included the license key in the regwizz merge module. Runs fine on my dev server but when I ftp file to my hosted web server then I get the message below.

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

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.  

Stack Trace:


[InternalException: Cannot find KeycodeV2.dll, or invalid keycode.]
   .F(String       , EngineExceptionErrorID 
) +641
   .B(String , Int32 ) +57
   CrystalDecisions.CrystalReports.Engine.ReportDocument.;() +191
   CrystalDecisions.CrystalReports.Engine.ReportDocument.InternalInit() +138
   CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +63
   CrystalDecisions.CrystalReports.Engine.ReportClass..ctor() +65
   A001_CustomerRedemption2.A001_CustomerRedemption..ctor() +5
   A001_CustomerRedemption2.WebForm1..ctor() +100
   _ASP.WebForm1_aspx..ctor() +6

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) +0
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +66
   System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) +164

[HttpException (0x80004005): Failed to create page of type '_ASP.WebForm1_aspx'.]
   System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) +340
   System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String virtualPath, String inputFile, HttpContext context) +43
   System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String path) +44
   System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig) +698
   System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +95
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +173
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Take a look here, and see if it solves your problem:

Err Msg: "Cannot find keycodev2.dll or invalid keycode" appears in VS .NET:
http://support.businessobjects.com/library/kbase/articles/c2011205.asp

Bob
Avatar of RangerLad
RangerLad

ASKER

Bob

This link refers to the development machine which works fine, I have also followed the other knowledgebase article c2010681 which does refer to deployment but to no avail

Chris
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I have already added all the merge modules and included the License key but you may be correct on the run-time files. Looking at the article you linked it lists numerous dll's required but does not make it clear where these are needed, should they be on the webserver or just available locally ?

Chris
They should be on the web server.

Bob
In the bin folder ?
Yes.

Bob
Ok, so I have followed the Crystal link where it explains the dll's reqd for RDC V9 should be and it is just an updated set of merge modules, am I missing the point here ? From what you have said I need to be adding CRViewer9.dll, Craxdrt9.dll etc I would think as references in my Project, recompile then copy over into the bin folder. But I dont have a copy of these files locally and can not find where I can download them either from the Crystal or the MSDN site. Any ideas ?
Anybody had any thoughts on this one, will much appreciate any input

Thanks
Chris