ERRO AO ABRIR UM RELATORIO EM REDE CR X VB.NET

JCM0867 06/02/2014 11:24:11
#434354
Bom dia pessoal.

Uso o crystal reports for VS 2012.

Quando eu rodo um relatório local (Onde tenho o VB net instalado e SO Win8.1) o relatório abre normalmente 100%.
Tentei abrir o relatório em rede numa maquina que só tem o runtime do crystal reports 2012 (SO Win7) e deu o seguinte erro:

[txt-color=#0000f0]Ocorreu uma exceção não tratada no aplicativo. Se você clicar
em Continuar, o aplicativo ignorará esse erro e tentará continuar.
Se clicar em Encerrar, o aplicativo será encerrado imediatamente.

Erro ao criar o formulário. Consulte Exception.InnerException para
obter detalhes.
O erro é: O inicializador do tipo de [ô]CrystalDecisions.CrystalReports.Engine.ReportDocument[ô]
acionou uma exceção.[/txt-color]

O restante do sistema parece rodar normalmente em rede, só os relatórios que não abrem.
Já mudei o net Framework de 4.5 par 3.5.1, já reinstalei o Runtime. Não achei o mesmo erro na internet, etc.
Interessante que qdo tinha o VB 2012 instalado nessa maquina da rede, os relatórios rodavam sem problema, Só que e eu não posso ficar instalado VB NET nos clientes.

Se alguém souber o que fazer, agradeço.
Júlio
JCM0867 11/02/2014 22:38:23
#434594
nenhuma dica?
NILSONTRES 11/02/2014 23:09:32
#434597
Qual Runtime vc instalou, o para visual studio ou Runtime para o cristal, onde não tem o vb tem que instalor um outro diferente do que vc instala onde tem vb. ele tem uns 70 MB mais ou menos.
JCM0867 12/02/2014 09:22:35
#434612
bom dia

uso o VB 2012 professional com framework 4.5
na maquina onde tem o VB instalei o Crystal [txt-color=#0000f0]CRforVS_13_0_8.exe[/txt-color] que é para desenvolvimento e instalei tb na maquina do vb o Runtime [txt-color=#0000f0]CRRuntime_64bit_13_0_8.msi[/txt-color], os relatórios funcionam normalmente.

No pc Cliente sem VB instalei o Runtime [txt-color=#0000f0]CRRuntime_64bit_13_0_8.msi[/txt-color] e tb o [txt-color=#0000f0]CRRuntime_64bit_13_0_5.msi[/txt-color] nos dois casos o erro é o mesmo

tb troquei o framework 4.5 para 3.5.1 e o erro continuou.
pc com VB é o W8.1
pc sem VB é o W7

No pc cliente não dá para instalar [txt-color=#0000f0]CRforVS_13_0_8.exe[/txt-color] para desenvolvimento pq não tem VB instalado

Att,
Júlio C. Moraes
JCM0867 12/02/2014 10:03:14
#434616
Erro Completo, só que agora o erro foi em ingles.

Unhandied exception has occurred in your application, If you click
Continue, the application will ingnore this error and attempt to continue. If
you click Quit, the application will close immediately.

An Error occurred creating the form. See exception.innerExcepition for details.
The error is: The Tipe initializer for
[ô]CrystalDecisions.CrystalReports.Engine.ReportDocument[ô] threw an excepyion.
---------------------------------------------------------------------------------------------------------

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details. The error is: The type initializer for [ô]CrystalDecisions.CrystalReports.Engine.ReportDocument[ô] threw an exception. ---> System.TypeInitializationException: The type initializer for [ô]CrystalDecisions.CrystalReports.Engine.ReportDocument[ô] threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly [ô]CrystalDecisions.ReportAppServer.CommLayer, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304[ô] or one of its dependencies. O sistema não pode encontrar o arquivo especificado.
at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor()
--- End of inner exception stack trace ---
at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()
at Cesc40.RelatoriosSecretaria..ctor()
--- End of inner exception stack trace ---
at Cesc40.My.MyProject.MyForms.Create__Instance__[T](T Instance)
at Cesc40.My.MyProject.MyForms.get_RelatoriosSecretaria()
at Cesc40.ImpHistoricos.cmdImprimir_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.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Cesc40
Assembly Version: 4.0.0.0
Win32 Version: 4.0.0.0
CodeBase: file://JULIO-W8/Cesc40/Cesc40.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 11.0.50938.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Transactions
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
CrystalDecisions.CrystalReports.Engine
Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine/13.0.2000.0__692fbea5521e1304/CrystalDecisions.CrystalReports.Engine.dll
----------------------------------------
CrystalDecisions.Shared
Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Shared/13.0.2000.0__692fbea5521e1304/CrystalDecisions.Shared.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (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 computer
rather than be handled by this dialog box.


OCELOT 12/02/2014 10:15:54
#434619
Resposta escolhida
No erro ele não está encontrando o arquivo, então você deve ter instalado o Runtime errado do Crystal, veja se existe alguma outra versão do Runtime disponível, e outro detalhe, se o seu programa tiver sido compilado para 32 bits então instale o Runtime de 32 bits independente do Windows ser de 32 ou 64 bits
NILSONTRES 12/02/2014 10:33:20
#434621
Citação:

se o seu programa tiver sido compilado para 32 bits então instale o Runtime de 32 bits independente do Windows ser de 32 ou 64 bits


Exatamente OCELOT, bem lembrado, eu nem instalo 64 bits em maquinas 64, só o 32 mesmo.
JCM0867 12/02/2014 11:25:32
#434629
ok, vou testar

o sistema está em 32 bits, o Crystal desenvolvimento e runtime está em 64 bits em ambas as maquinas
vou instalar o runtime 32 bits

logo dou um retorno

JCM0867 12/02/2014 12:12:56
#434633
beleza, deu certo, exclui o 64 bits e coloquei o 32 bits no pc Cliente

intalei o [txt-color=#0000f0]CRRuntime_32bit_13_0_8.msi[/txt-color]

interessante que no pc de desenvolvimento continua compilado com o Crystal 64 bits
mesmo assim vou colocar o 32 bits tb.

Valeu mesmo, já estava preocupado.

Júlio C. Moraes
Tópico encerrado , respostas não são mais permitidas