Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Cannot find Keycodev2.dll when running ASP.NET project

Posted on 2008-06-14
2
Medium Priority
?
414 Views
Last Modified: 2013-11-26
I recently lost the hard disk on my development laptop and while I had copies of my source code and databases, I had to reinstall VS.NET 2003 and other applications. I created a virtual directory and copied my ASP.NET application and it works as it used to, however, when I now try to open one of the embedded Crystal Reports I get the "Cannot find KeycodeV2.dll" error.

I've looked at many possible solutions however none of them work. I also no longer see the 19-digit keycode when I select Help > About in VS.NET. This is a production application that I can't release new features for unless the Crystal Reports issue is resolved.

Any proven solutions to this "annoying" problem will be greatly appreciated.
0
Comment
Question by:pstanford
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 35

Accepted Solution

by:
torimar earned 2000 total points
ID: 21784746
Have you already tried the following?

QUOTE:

This error message appears because the ASPNET account does not have rights to the following registry keys:
" HKEY_CLASSES_ROOT\Interface\{4A4D268A-DF9B-4FC1-8301-D9FEEEF69F9C}
" HKEY_CLASSES_ROOT\TypeLib\{8D43D0B9-C14E-4577-9E67-A9A1EEF82302}
To resolve this error message, give the ASPNET account Read rights to these two registry keys.

If you have configured the ASP.NET worker process (aspnet_wp.exe) to run under the System account, then the System account must have the rights to these keys.

To give the ASPNET account read rights to a registry key perform the following steps:
1. Open the 32-bit Registry Editor by going to Start, click Run, then type "regedt32. For Windows XP computers, type "regedit" instead of "regedt32". Click OK.
2. Go to the HKEY_CLASSES_ROOT section and expand the Interface key.
3. Select the {4A4D268A-DF9B-4FC1-8301-D9FEEEF69F9C} key.
4. Click the Security menu and then click Permissions&. (When using regedit in Windows XP, click the Edit menu then click Permissions&.)
5. In the Permissions dialog box, add the ASPNET account from the local computer and give this account Read rights.
6. In the HKEY_CLASSES_ROOT section, select the TypeLib key. Repeat steps 3 to 5 above, using the {8D43D0B9-C14E-4577-9E67-A9A1EEF82302} key.

In order to have access to these registry keys, Keycodev2.dll must be registered. To register Keycodev2.dll, go to Start, click Run , then type:
Regsvr32 "C:\Program Files\Common Files\Crystal Decisions\1.0\bin\Keycodev2.dll"
The path to Keycodev2.dll is the same for Visual Studio .NET 2002 and Visual Studio .NET 2003.

If the file fails to register, download the Dependency Walker utility from http://www.dependencywalker.com/. This utility will list all the Keycodev2.dll dependency files and should indicate what files are missing or outdated.

END QUOTE

Quote was taken from the PDF file I attached.

Good luck.
crnet-keycodev2.pdf
0
 

Author Closing Comment

by:pstanford
ID: 31467286
First let me say 'Thank you' for saving me hours or trawling through sites where lots of respondents 'guess' at what they think the question or answer is.

I'm not sure which piece (or combination of pieces) solved this problem but I don't recall having to do any of this when I set the application up on my original development environment. I wasn't getting very far with the dependency walker which suggested I need DWMAPI.DLL which, according to other sites is not required for XP. Modifying registry settings is not my preferred way to solve problems but I believe the ASPNET permissions were probably the biggest contributor to the solution.

Having said all that, I truly appreciate the prompt and detailed nature of your response and now have the application working as it was before.
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question