Crystal Reports KeycodeV2.dll not found on Windows 7

Weigher
Weigher used Ask the Experts™
on
Hi,

I have an application developed on Visual Basic (VS 2003) and using crystal reports (the integrated to VS). All features of my application works fine on Windows 7 (64bit) but Crytal Reports.

There are some cases discussed about the Crystal Reports not supported by Windows 7.  But I am still confused because the error message seems not related to a compatility problem. I received this error before when I was working on obfucation and key related issues of CR.

Is there any quick solution that may fix the problem?

I receive following error on Windows 7 when I try to preview my report (this does not happen when installed on Windows XP).

************** Exception Text **************
CrystalDecisions.CrystalReports.Engine.InternalException: Cannot find KeycodeV2.dll, or invalid keycode.
   at .F(String       , EngineExceptionErrorID 
)
   at .B(String , Int32 )
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.;()
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.InternalInit()
   at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()
   at CrystalDecisions.CrystalReports.Engine.ReportClass..ctor()
   at EtiMadenRaporu.rpt_VehiclesByPlatesInTime..ctor()
   at EtiMadenRaporu.rpt_HakRap_FirmaMalzeme_Plaka.BindReport(String tarih1, String tarih2, String Firma, String Malzeme, String description, Int32 Failed)
   at EtiMadenRaporu.rpt_HakRap_FirmaMalzeme_Plaka.btnList_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Lee OsborneSenior Infrastructure Engineer

Commented:
Have you tried running this in Windows XP Compatibility Mode?

You're right in saying that VS2003 isn't officially supported in even Vista, but there are a couple of suggestions here -

http://msdn.microsoft.com/en-us/vstudio/bb188244.aspx

Run Visual Studio with elevated administrator permissions
Be a member of the "Administrators" group on the local machine
Right-click the Visual Studio icon and select the "Run as administrator" option from the context menu

I would suggest that you try Windows Compatibility Mode first though -
Right click shortcut > Troubleshoot Compatibility     or
Right click shortcut > Properties > Compatibility > Run this program in compatibility mode for....

Lee

Lee

Author

Commented:
Hello Lee...

I am very new to Windows 7 and also have never worked under Vista because of its headaches.

Upon your suggestion, I tried with specifying my application to work in Windows XP both SP2 and SP3 modes, Windows Server 2003 mode. Nothing shanged (Just it started to ask about and confirm the program will change somethings).

I am logging in directly as Administrator. Only the application is installed to the computer (not VS). I changed the application EXE's properties as run as administrator (Logged as Admin though).

I have read the pages you suggested, most information is related with VS application itself. Now I am installing VS 2003 on that computer and I am going to try to find the problem with debugging.

More advices will be appreciated.


Senior Consultant
Most Valuable Expert 2011
Top Expert 2013
Commented:
Have you tried running it in 32-bit mode?

Only the latest version of Crystal support 64-bit systems.
The VS2003 version is at least 2 versions old so it isn't supported.

Does the application itself work otherwise?

mlmcc
How to Generate Services Revenue the Easiest Way

This Tuesday! Learn key insights about modern cyber protection services & gain practical strategies to skyrocket business:

- What it takes to build a cloud service portfolio
- How to determine which services will help your unique business grow
- Various use-cases and examples

Author

Commented:
Is there an easy way to operate a 64 bit Windows 7 in 32 bit mode? Or an application in 32 bit mode. I tried Windows XP compatilibility modes but I am not sure this also specifies the application as 32 bit.

Another progress; after I installed VS 2003 to the computer, the keycodev2.dll problem disappeared, but the application started to raise error related with CR form content (variable errors.. etc.). I will can try installation of 32 bit Windows 7 next week.
Mike McCrackenSenior Consultant
Most Valuable Expert 2011
Top Expert 2013

Commented:
I don't know.  I would think the XP mode would do it but I don't know for sure.

mlmcc

Author

Commented:
The answers showed me that there is not an easy solution for my case. The problem caused from software incompatility and probably cannot be solved.

Author

Commented:
After spending some time I have solved the issue in following way;

- I upgraded my application to be compiled under VS 2005 (converted automatically when solution opened by VS 2005).
- I made some changes to references to run CR forms previously designed in VS 2003.
- I gave up and removed merge modules of CR for VS 2003 in my install project
- I installed Crystal Reports Redistributable 64 bit to the client machine (The redistributable is CRRedist2005_X64.msi and exists in VS2005 files of development computer; C:\Program Files\Microsoft Visual Studio 8\Crystal Reports\CRRedist\X64).

It worked...
Mike McCrackenSenior Consultant
Most Valuable Expert 2011
Top Expert 2013

Commented:
I believe VS2003 doesn't run under Win 7 or 64- bit

mlmcc

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial