Error al tratar de generar reportes con Crystal Reports

24/09/2004 - 00:59 por Omar Flores | Informe spam
Hola, estoy probando una aplicación que acabo de terminar en una máquina
cliente, y al parecer casi todo funciona a exepción de los reportes, al
querer quenerar algún reporte aparece una ventana con el sig. error:

*****************************************
An unhandled exception has ocurred 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 inmediately.

cannot find keycodeV2.dll, or invalid keycode

Y al darle click al botón detalles me aparece toto esto:

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 .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 Almacen.rptDetalleEntrada..ctor()
at Almacen.frmRptEntradas.btnTodas_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at DevExpress.XtraEditors.BaseButton.OnClick(EventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.XtraEditors.BaseControl.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.2032
CodeBase:
file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
-
Almacen
Assembly Version: 1.0.1727.27372
Win32 Version: 1.0.1727.27372
CodeBase: file:///C:/ARCHIVOS%20DE%20PROGRAMA/SYSCOM/SETUP/ALMACEN.EXE
-
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
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.2032
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.2032
CodeBase:
file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
-
DevExpress.XtraEditors
Assembly Version: 2.1.1.0
Win32 Version: 2.1.1.0
CodeBase:
file:///C:/ARCHIVOS%20DE%20PROGRAMA/SYSCOM/SETUP/DevExpress.XtraEditors.DLL
-
DevExpress.Utils
Assembly Version: 2.1.1.0
Win32 Version: 2.1.1.0
CodeBase:
file:///C:/ARCHIVOS%20DE%20PROGRAMA/SYSCOM/SETUP/DevExpress.Utils.DLL
-
CrystalDecisions.Windows.Forms
Assembly Version: 9.1.5000.0
Win32 Version: 9.1.9800.0
CodeBase:
file:///c:/windows/assembly/gac/crystaldecisions.windows.forms/9.1.5000.0__692fbea5521e1304/crystaldecisions.windows.forms.dll
-
System.Data
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
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.2032
CodeBase:
file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
-
CrystalDecisions.Shared
Assembly Version: 9.1.5000.0
Win32 Version: 9.1.9800.0
CodeBase:
file:///c:/windows/assembly/gac/crystaldecisions.shared/9.1.5000.0__692fbea5521e1304/crystaldecisions.shared.dll
-
CrystalDecisions.CrystalReports.Engine
Assembly Version: 9.1.5000.0
Win32 Version: 9.1.9800.0
CodeBase:
file:///C:/WINDOWS/ASSEMBLY/GAC/CRYSTALDECISIONS.CRYSTALREPORTS.ENGINE/9.1.5000.0__692FBEA5521E1304/CRYSTALDECISIONS.CRYSTALREPORTS.ENGINE.DLL
-
System.EnterpriseServices
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/assembly/gac/system.enterpriseservices/1.0.5000.0__b03f5f7f11d50a3a/system.enterpriseservices.dll
-
CrystalKeyCodeLib
Assembly Version: 9.1.5000.0
Win32 Version: 9.1.9800.0
CodeBase:
file:///c:/windows/assembly/gac/crystalkeycodelib/9.1.5000.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.

*************************************************
En la pc que estoy desarrollando la aplicación si tengo el alrchivo
keycodeV2.dll y lo tengo en la sig. ruta:
c:\Archivos de Programa\Archivos Comunes\Crystal Decisions\1.0\Bin

Espero y me puedan decir como le puedo hacer para que el instalador me lo
tome o en que parte debo de copiar este archivo.
Estoy utilizando VS 2003 con Crystal Reports 10.

Gracias por su ayuda.
 

Leer las respuestas

#1 Martin
24/09/2004 - 01:59 | Informe spam
Al parecer te hace falta, agregar los marge modules de
crystal reports a tu empaquetado.
si los tienes, Da click derecho en el nombre de tu
empaquetado - Agregar - Marge modules. Esto te envia a
los modulos de combinacion de VS.NET, ahi elige los que
empiezen con Crystal, como :
Crystal_Database_Access2003.msm
Crystal_Database_Access2003_enu.msm
Crystal_regwiz2003.msm
son 4 o 5 depende de la version que tengas, pero de
preferencia agrega todos.
Despues en la propiedad Keycode modulo Crystal_regwiz2003
pones la clave de registro de Crystal reports para visual
studio como por ejemplo: AAP5G-HS00000-U7000WM. esta la
encuentras en Ayuda - Acerca de Microsoft Visual Studio.

Espero que te sirva
Hola, estoy probando una aplicación que acabo de


terminar en una máquina
cliente, y al parecer casi todo funciona a exepción de


los reportes, al
querer quenerar algún reporte aparece una ventana con el


sig. error:

*****************************************
An unhandled exception has ocurred 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


inmediately.

cannot find keycodeV2.dll, or invalid keycode

Y al darle click al botón detalles me aparece toto esto:

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 .F(String  , EngineExceptionErrorID 
)
at .B(String , Int32 )
at


CrystalDecisions.CrystalReports.Engine.ReportDocument.;()
at


CrystalDecisions.CrystalReports.Engine.ReportDocument.Inte
rnalInit()
at


CrystalDecisions.CrystalReports.Engine.ReportDocument..cto
r()
at


CrystalDecisions.CrystalReports.Engine.ReportClass..ctor()
at Almacen.rptDetalleEntrada..ctor()
at Almacen.frmRptEntradas.btnTodas_Click(Object


sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at DevExpress.XtraEditors.BaseButton.OnClick


(EventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m,


MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.XtraEditors.BaseControl.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.2032
CodeBase:
file:///c:/windows/microsoft.net/framework/v1.1.4322/msco


rlib.dll
-
Almacen
Assembly Version: 1.0.1727.27372
Win32 Version: 1.0.1727.27372
CodeBase: file:///C:/ARCHIVOS%20DE%


20PROGRAMA/SYSCOM/SETUP/ALMACEN.EXE
-
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
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.2032
CodeBase:
file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c


561934e089/system.dll
-
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0


__b03f5f7f11d50a3a/system.drawing.dll
-
DevExpress.XtraEditors
Assembly Version: 2.1.1.0
Win32 Version: 2.1.1.0
CodeBase:
file:///C:/ARCHIVOS%20DE%


20PROGRAMA/SYSCOM/SETUP/DevExpress.XtraEditors.DLL
-
DevExpress.Utils
Assembly Version: 2.1.1.0
Win32 Version: 2.1.1.0
CodeBase:
file:///C:/ARCHIVOS%20DE%


20PROGRAMA/SYSCOM/SETUP/DevExpress.Utils.DLL
-
CrystalDecisions.Windows.Forms
Assembly Version: 9.1.5000.0
Win32 Version: 9.1.9800.0
CodeBase:
file:///c:/windows/assembly/gac/crystaldecisions.windows.


forms/9.1.5000.0__692fbea5521e1304/crystaldecisions.window
s.forms.dll
-
System.Data
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/assembly/gac/system.data/1.0.5000.0__b


77a5c561934e089/system.data.dll
-
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b7


7a5c561934e089/system.xml.dll
-
CrystalDecisions.Shared
Assembly Version: 9.1.5000.0
Win32 Version: 9.1.9800.0
CodeBase:
file:///c:/windows/assembly/gac/crystaldecisions.shared/9


.1.5000.0__692fbea5521e1304/crystaldecisions.shared.dll
-
CrystalDecisions.CrystalReports.Engine
Assembly Version: 9.1.5000.0
Win32 Version: 9.1.9800.0
CodeBase:
file:///C:/WINDOWS/ASSEMBLY/GAC/CRYSTALDECISIONS.CRYSTALR


EPORTS.ENGINE/9.1.5000.0__692FBEA5521E1304/CRYSTALDECISION
S.CRYSTALREPORTS.ENGINE.DLL
-
System.EnterpriseServices
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/assembly/gac/system.enterpriseservices


/1.0.5000.0__b03f5f7f11d50a3a/system.enterpriseservices.dl
l
-
CrystalKeyCodeLib
Assembly Version: 9.1.5000.0
Win32 Version: 9.1.9800.0
CodeBase:
file:///c:/windows/assembly/gac/crystalkeycodelib/9.1.500


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.

*************************************************
En la pc que estoy desarrollando la aplicación si tengo


el alrchivo
keycodeV2.dll y lo tengo en la sig. ruta:
c:\Archivos de Programa\Archivos Comunes\Crystal


Decisions\1.0\Bin

Espero y me puedan decir como le puedo hacer para que el


instalador me lo
tome o en que parte debo de copiar este archivo.
Estoy utilizando VS 2003 con Crystal Reports 10.

Gracias por su ayuda.


.

Preguntas similares