Err Msg: "Cannot find keycodev2.dll or invalid keycode" appears in VS .NET
The information in the article refers to:
Crystal Reports for Visual Studio .NET
Err Msg: "Cannot find keycodev2.dll or invalid keycode" appears in VS .NET
The information in the article refers to:
Crystal Reports for Visual Studio .NET
Applies to:
Reported version only
Permissions
KeycodeV2.dll
Synopsis
A VB .NET web application uses Crystal Reports for Visual Studio .NET as the reporting development tool.
When you run the application on the development computer, the following error message appears:
"Cannot find keycodev2.dll or invalid keycode"
Why does this error message appear in your VB .NET web application, and how can you resolve it?
====================
NOTE:
This issue only exists on the development computer when working with a web application. This issue does not apply to deployment.
If this error occurs on your deployment computer, refer to knowledge base article c2010681 and if the error occurs in a Windows Forms application, refer to knowledge base article c2012603. These articles on available on our support site:
To resolve this error message, give these two registry keys ASPNET read rights. If you are running ASPNET under the System account, then the System account must have the rights to this key.
To give ASPNET read rights to a registry key:
1. Go into the 32-bit Registry Editor (Start > Run > then type "regedt32"). For Windows XP computers, type "regedit" instead of "regedt32".
2. Go to 'HKEY_CLASSES_ROOT' and select the 'Interface' key.
3. Highlight "{4A4D268A-DF9B-4FC1-8301-D9FEEEF69F9C}" and select the "Security" menu then click "Permissions…". (When using regedit in Windows XP, select the "Edit" menu then click "Permissions…".)
4. In the permissions dialog, add the "ASPNET" account from the local computer and give this account read rights.
5. Go to 'HKEY_CLASSES_ROOT' and select the 'TypeLib' key. Repeat steps 3 to 4, except use the "{8D43D0B9-C14E-4577-9E67-A9A1EEF82302}" key.
====================
NOTE:
In order to have access to these registry keys, keycodev2.dll must be registered. To register keycodev2.dll, go to Start > Run and type:
If keycodev2.dll cannot be registered, refer to knowledge base article c2012603.
====================
Additional Information
---------------------
• Win9x operating systems such as Windows 98 and Windows ME do not have the ability to assign permissions to registry keys based on user groups, so this solution may not apply.
• For further troubleshooting information go to http://support.businessobjects.com/search and download the document Crnet_keycodev2.pdf. This document discusses how to troubleshoot error messages related to the Keycodev2.dll for the version of Crystal Reports that comes bundled with Microsoft Visual Studio .NET. Solutions are discussed for both development and deployment computers.
--------------------------------------------------------------------------------
Category:
Subject:
Topic:
Keywords:
Development
Crystal Reports for Visual Studio .NET
Report Viewing
KEYCODEV2 KEYCODEV2.DLL INVALID KEYCODE VB NET ASP C2010681 DOTNET
--------------------------------------------------------------------------------
Product:
CR for Visual Studio .Net
Reported Version:
9.1.9360.0 Crystal Reports for Visual Studio .Net