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.CrystalRe ports.Engi ne.Interna lException : 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.CrystalRe ports.Engi ne.ReportD ocument.; () +191
CrystalDecisions.CrystalRe ports.Engi ne.ReportD ocument.In ternalInit () +138
CrystalDecisions.CrystalRe ports.Engi ne.ReportD ocument..c tor() +63
CrystalDecisions.CrystalRe ports.Engi ne.ReportC lass..ctor () +65
A001_CustomerRedemption2.A 001_Custom erRedempti on..ctor() +5
A001_CustomerRedemption2.W ebForm1..c tor() +100
_ASP.WebForm1_aspx..ctor() +6
[TargetInvocationException : Exception has been thrown by the target of an invocation.]
System.RuntimeType.CreateI nstanceImp l(Boolean publicOnly) +0
System.Activator.CreateIns tance(Type type, Boolean nonPublic) +66
System.Web.UI.TemplateCont rolParser. GetCompile dInstance( String virtualPath, String inputFile, HttpContext context) +164
[HttpException (0x80004005): Failed to create page of type '_ASP.WebForm1_aspx'.]
System.Web.UI.TemplateCont rolParser. GetCompile dInstance( String virtualPath, String inputFile, HttpContext context) +340
System.Web.UI.PageParser.G etCompiled PageInstan ceInternal (String virtualPath, String inputFile, HttpContext context) +43
System.Web.UI.PageHandlerF actory.Get Handler(Ht tpContext context, String requestType, String url, String path) +44
System.Web.HttpApplication .MapHttpHa ndler(Http Context context, String requestType, String path, String pathTranslated, Boolean useAppConfig) +698
System.Web.MapHandlerExecu tionStep.S ystem.Web. HttpApplic ation+IExe cutionStep .Execute() +95
System.Web.HttpApplication .ExecuteSt ep(IExecut ionStep step, Boolean& completedSynchronously) +173
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- -----
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.CrystalRe
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.CrystalRe
CrystalDecisions.CrystalRe
CrystalDecisions.CrystalRe
CrystalDecisions.CrystalRe
A001_CustomerRedemption2.A
A001_CustomerRedemption2.W
_ASP.WebForm1_aspx..ctor()
[TargetInvocationException
System.RuntimeType.CreateI
System.Activator.CreateIns
System.Web.UI.TemplateCont
[HttpException (0x80004005): Failed to create page of type '_ASP.WebForm1_aspx'.]
System.Web.UI.TemplateCont
System.Web.UI.PageParser.G
System.Web.UI.PageHandlerF
System.Web.HttpApplication
System.Web.MapHandlerExecu
System.Web.HttpApplication
--------------------------
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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
Chris
They should be on the web server.
Bob
Bob
ASKER
In the bin folder ?
Yes.
Bob
Bob
ASKER
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 ?
ASKER
Anybody had any thoughts on this one, will much appreciate any input
Thanks
Chris
Thanks
Chris
Err Msg: "Cannot find keycodev2.dll or invalid keycode" appears in VS .NET:
http://support.businessobjects.com/library/kbase/articles/c2011205.asp
Bob