Results 1 to 10 of 10

Thread: Error opening program with Crystal Report. [Resolved]

  1. #1

    Thread Starter
    Registered User
    Join Date
    Apr 2003
    Location
    Klang, Selangor, Malaysia
    Posts
    163

    Question Error opening program with Crystal Report. [Resolved]

    I had developed an Invoice System. This system uses Crystal Report to generate reports. Everything is working very fine. I also created an Installer for this Invoice System.

    I used this
    Installer to install Invoice System to a new PC. This new PC is empty. Only has Windows XP Home and Microsoft Access installed. Everything works fine. It can interacts with database file with no error. But when I try to generate report, error occurs. The error message is as below:
    An unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will be shut down immediately.

    Cannot find KeycodeV2.dll, or invalid keycode.
    The details of this error message is as below:
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    CrystalDecisions.CrystalReports.Engine.InternalException: Cannot find KeycodeV2.dll, or invalid keycode.
    at .K(String 
    , EngineExceptionErrorID  )
    at .G(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 Invoice.rptInvoice..ctor()
    at Invoice.frmReport.frmReport_Load(Object sender, EventArgs e)
    at System.Windows.Forms.Form.OnLoad(EventArgs e)
    at System.Windows.Forms.Form.OnCreateControl()
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.WmShowWindow(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    at System.Windows.Forms.ContainerControl.WndProc(Message& m)
    at System.Windows.Forms.Form.WmShowWindow(Message& m)
    at System.Windows.Forms.Form.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)


    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
    ----------------------------------------
    Invoice System
    Assembly Version: 1.0.1271.17798
    Win32 Version: 1.0.1271.17798
    CodeBase: file:///C:/Program%20Files/Bert's%20Software/Invoice%20System%20v1.0/Invoice%20System.exe
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
    ----------------------------------------
    System
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
    ----------------------------------------
    System.Drawing
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
    ----------------------------------------
    Microsoft.VisualBasic
    Assembly Version: 7.0.5000.0
    Win32 Version: 7.10.3052.4
    CodeBase: file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
    ----------------------------------------
    System.Data
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll
    ----------------------------------------
    System.Xml
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
    ----------------------------------------
    CrystalDecisions.Windows.Forms
    Assembly Version: 9.1.3300.0
    Win32 Version: 9.1.9370.0
    CodeBase: file:///c:/windows/assembly/gac/crystaldecisions.windows.forms/9.1.3300.0__692fbea5521e1304/crystaldecisions.windows.forms.dll
    ----------------------------------------
    CrystalDecisions.Shared
    Assembly Version: 9.1.3300.0
    Win32 Version: 9.1.9360.0
    CodeBase: file:///c:/windows/assembly/gac/crystaldecisions.shared/9.1.3300.0__692fbea5521e1304/crystaldecisions.shared.dll
    ----------------------------------------
    CrystalDecisions.CrystalReports.Engine
    Assembly Version: 9.1.3300.0
    Win32 Version: 9.1.9360.0
    CodeBase: file:///c:/windows/assembly/gac/crystaldecisions.crystalreports.engine/9.1.3300.0__692fbea5521e1304/crystaldecisions.crystalreports.engine.dll
    ----------------------------------------
    CrystalKeyCodeLib
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///c:/windows/assembly/gac/crystalkeycodelib/1.0.0.0__692fbea5521e1304/crystalkeycodelib.dll
    ----------------------------------------

    ************** JIT Debugging **************
    To enable just in time (JIT) debugging, the config file for this
    application or machine (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.

    For example:

    <configuration>
    <system.windows.forms jitDebugging="true" />
    </configuration>

    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the machine
    rather than being handled by this dialog.
    Why this error happens? How can I solve this problem? Do I need to install extra software to view Crystal-Report-generated reports?

    Please guide thank you.
    Last edited by albertlse; Aug 21st, 2003 at 08:17 PM.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    This is a common problem, you should try searching before you post. The trouble is that to distribute Crystal Reports you have to have registered it AND entered that registration number in part of the Setup Package.

    http://www.vbforums.com/showthread.p...hreadid=246722

    http://support.crystaldecisions.com/kbase/c2010681.asp

    http://www.vbforums.com/search.php?s...der=descending

  3. #3

    Thread Starter
    Registered User
    Join Date
    Apr 2003
    Location
    Klang, Selangor, Malaysia
    Posts
    163
    Thank you for providing the link. I try the solution suggested, but my problem still cannot be solved.

    I just added REGWIZ.MSM merge module together with a correct license key to the installer (setup) project of "Invoice System". I rebuild the project, and used the setup file to install "Invoice System". but the error message still occurs, and the crystal report could not be view.

    Next, I checked the version property for all of the Crystal references in the Visual Studio project, including "CrystalDecisions.CrystalReports.Engine", "CrystalDecisions.ReportSource", "CrystalDecisions.Shared", "CrystalDecisions.Web". All their version is 9.1.3300.0. Where can I download updated viewer control version 9.2.3300.0? Is it must be version 9.2.3300.0 for the crystal report to be seen on other PC?

    Then, in the second splash screen from the setup of the distributed application has 2 radio buttons under the line: "Install YourApplicationName for yourself, or for anyone who uses this computer". I selected the "Everyone" radio button to allow all users to run the application. but the error message still occurs, and the crystal report could not be view.

    What are the files that need to be included in the setup project, so that PC without Crystal Report installed, can view those Crystal-Report-generated reports?

    Please guide thank you.

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    In the setup project did you remember to enter your registration number in the property of the regwiz.msm file?

  5. #5

    Thread Starter
    Registered User
    Join Date
    Apr 2003
    Location
    Klang, Selangor, Malaysia
    Posts
    163

    Question

    In the setup project did you remember to enter your registration number in the property of the regwiz.msm file?
    Yes, I did enter the registration number. but when after installing this program to other PC, still CANNOT view Crystal Report.
    Why is this so?
    beside adding regwiz.msm file and the registration number to the setup project, what are the other things that i need to do as well?
    pls guide... thank you.

  6. #6
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    I don't know I followed the steps in the pdf file on those links and my setup project worked fine after that. I can only suggest to reread the instructions and try again, sorry.

  7. #7

    Thread Starter
    Registered User
    Join Date
    Apr 2003
    Location
    Klang, Selangor, Malaysia
    Posts
    163

    Question

    I had downloaded crnet_deployment.pdf file (Crystal Reports for Visual Studio .NET).

    I go through the file and followed the solution provided.

    I added the following merge modules to the setup project:
    Database_Access.msm
    Database_Access_enu.msm
    regwiz.msm (The license key "6210089812" is entered into the LicenseKey property, is this key a false one?)

    But when I install on other PC, the error message still occurs...

    Can you send me an example of the setup project that you built, that has Crystal Report support?

    How did u managed to do it? pls guide me. Thank you.

    FYI, the version of Crystal Report is 9.1.3300.0
    I tried to install to "Everyone" and "Just for me" but the error still occurs

  8. #8
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    The License Key requires the keycode that you receive after registering the product. When Crystal Report for Visual Studio .NET is registered, an email is sent with a keycode and a registration number. Copy the keycode into the License Key property, and then build the setup project.
    -From CR Website
    I think you are using the registration number instead of the keycode. I think the keycode is the longer one, like 19 characters alpha-numeric.

    -Edited-

    Yeah check this out form the CR Deployment pdf:
    When regwiz.msm is added to a setup project, it exposes a LicenseKey property that must be set before building the setup project. The 19-digit license key is emailed when the product is registered. This key is also available from the VS.NET Help | About... dialog, under the installed products list. The license key must be entered into the LIcenseKey property for the regwiz.msm merge module.

    If the license key is not set for the regwiz.msm merge module, an error will occur when building the project. If the setup is installed on a target computer without specificying the license key for the merge module, various "keycodex2.dll" errors will occur.
    Last edited by Edneeis; Jul 14th, 2003 at 09:18 PM.

  9. #9

    Thread Starter
    Registered User
    Join Date
    Apr 2003
    Location
    Klang, Selangor, Malaysia
    Posts
    163
    Edneeis, just want to double check with u...
    what is the version of each merge modules that u added to the setup project?
    did u update to the latest one 9.2.....?

  10. #10

    Thread Starter
    Registered User
    Join Date
    Apr 2003
    Location
    Klang, Selangor, Malaysia
    Posts
    163

    Thumbs up

    Thanks Edneeis. It's all because i miss type the license key with register key. after changing everything works as what i expect. 10q!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width