Saturday, July 17, 2004

.NET Deployment Problem "keycodev2.dll"

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 this VB .NET web application?

This issue only exists on the development computer when working with a web
application. This issue does not apply to deployment.

This error message appears because the following registry keys do not have
rights for the ASPNET account:

- HKEY_CLASSES_ROOT\Interface\{4A4D268A-DF9B-4FC1-8301-D9FEEEF69F9C}

- HKEY_CLASSES_ROOT\TypeLib\{8D43D0B9-C14E-4577-9E67-A9A1EEF82302}

To resolve this error message, give these two registry keys ASPNET read


To give ASPNET read rights to a registry key:

1. Go into the 32 bit Registry Editor (Start > Run > then type "regedt32").

2. Go to the 'HKEY_CLASSES_ROOT' window and select the 'Interface' key.

3. Highlight "{4A4D268A-DF9B-4FC1-8301-D9FEEEF69F9C}" and select the
"Security" menu then click "Permissions...".

4. In the permissions dialog, add the "ASPNET" account from the local
machine and give this account at least read rights.

Repeat steps 2 to 4, except use the "{8D43D0B9-C14E-4577-9E67-A9A1EEF82302}"
key under the "TypeLib" key.

NOTE: After All above steps you have to Recompile your Program........

No comments: