Hello,
We are 3 students who works on an IT project for our degree. We would like to deploy an application to a client (the client do not pay the app). But we meet many problems.
We try to create a setup with Inno setup, in our scripts we called CRforVS_redist_install_64bit_13_0.msi to run and install on client pc. That don’t work, the print of report doesn’t work, and this error appear:
*****************************************Exception Text************************* **************
System.TypeInitializationException: An exception was thrown by the type initializer for 'CrystalDecisions.Shared.SharedUtils'. ---> System.IO.FileNotFoundException: Could not load file or assembly 'log4net, Version = 1.2.10.0, Culture = neutral, PublicKeyToken = 692fbea5521e1304' or one of its dependencies. The specified file was not found.
to CrystalDecisions.Shared.SharedUtils .. cctor ()
--- End of stack trace --- inner exception
CrystalDecisions.Shared.SharedUtils.get_CurrentControl to ()
CrystalDecisions.Shared.SharedUtils.GetEffectiveCulture to ()
to CrystalDecisions.Shared.LocaleManager .. ctor ()
CrystalDecisions.Windows.Forms.CrystalReportViewer.InitReportViewer to ()
to CrystalDecisions.Windows.Forms.CrystalReportViewer .. ctor ()
IHM.FrmRapport.InitializeComponent to ()
to IHM.FrmRapport .. ctor (String strNomFichier)
to IHM.FrmPrincipale.creerRapport (Boolean prints)
to IHM.FrmPrincipale.printPreviewToolStripButton_Click (Object sender, EventArgs e)
to System.Windows.Forms.ToolStripItem.RaiseEvent (Object key, EventArgs e)
to System.Windows.Forms.ToolStripButton.OnClick (EventArgs e)
to System.Windows.Forms.ToolStripItem.HandleClick (EventArgs e)
to System.Windows.Forms.ToolStripItem.HandleMouseUp (MouseEventArgs e)
to System.Windows.Forms.ToolStripItem.FireEventInteractive (EventArgs e ToolStripItemEventType met)
to System.Windows.Forms.ToolStripItem.FireEvent (EventArgs e ToolStripItemEventType met)
to System.Windows.Forms.ToolStrip.OnMouseUp (MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp (Message & m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc (Message & m)
to System.Windows.Forms.ScrollableControl.WndProc (Message & m)
to System.Windows.Forms.ToolStrip.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).
1/ We thinks that errors provides from the license, is that right ? In our case the deployment is free ?
2/ It is possible to import dll necessary to the deployment of crystal report in our inno setup script to install the dll in a subfolder in the main folder of the application.
Ps: We tried to create a setup with the visual assistant, to use this merge module: 13_0_5.msm the result is the same.