I have deployed with clickonce an application that have a Crystal Report .


I have checked to include all Crystal report dll.

When the user try to use it it have this error:



************** Testo dell'eccezione **************

System.InvalidOperationException: Errore durante la creazione del form. Per
informazioni dettagliate vedere Exception.InnerException. Errore:
Impossibile caricare il file o l'assembly 'CrystalDecisions.Windows.Forms,
Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' o una
delle relative dipendenze. Impossibile trovare il file specificato. --->
System.IO.FileNotFoundException: Impossibile caricare il file o l'assembly
'CrystalDecisions.Windows.Forms, Version=10.2.3600.0, Culture=neutral,
PublicKeyToken=692fbea5521e1304' o una delle relative dipendenze.
Impossibile trovare il file specificato.

Nome file: 'CrystalDecisions.Windows.Forms, Version=10.2.3600.0,
Culture=neutral, PublicKeyToken=692fbea5521e1304'

in HACPACK_PTS.SITUAZIONE_PORTUALE.InitializeComponent()

in HACPACK_PTS.SITUAZIONE_PORTUALE..ctor()



AVV: la registrazione dell'associazione di assembly è disattivata.

Per attivare la registrazione degli errori di associazione di assembly,
impostare il valore del Registro di sistema
[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) su 1.

Nota: alcune penalità di prestazione sono associate alla registrazione degli
errori di associazione di assembly.

Per disattivare la funzionalità, rimuovere il valore del Registro di sistema
[HKLM\Software\Microsoft\Fusion!EnableLog].



--- Fine dell'analisi dello stack dell'eccezione interna ---

in HACPACK_PTS.My.MyProject.MyForms.Create__Instance__[T](T Instance)

in HACPACK_PTS.My.MyProject.MyForms.get_SITUAZIONE_PORTUALE()

in HACPACK_PTS.CONSOLE.MenuItem48_Click(Object sender, EventArgs e)

in System.Windows.Forms.MenuItem.OnClick(EventArgs e)

in System.Windows.Forms.MenuItem.MenuItemData.Execute()

in System.Windows.Forms.Command.Invoke()

in System.Windows.Forms.Command.DispatchID(Int32 id)

in System.Windows.Forms.Control.WmCommand(Message& m)

in System.Windows.Forms.Control.WndProc(Message& m)

in System.Windows.Forms.ScrollableControl.WndProc(Message& m)

in System.Windows.Forms.ContainerControl.WndProc(Message& m)

in System.Windows.Forms.Form.WndProc(Message& m)

in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)

RE: ERROR With assembly crystal report by jialge

jialge
Wed Jul 09 02:17:08 CDT 2008

Hello Dentone,

Although I cannot understand the language in the exception message, I think
it means that the application cannot find the assembly of cryptal report.
Am I right?

Because you said that you had checked to include all the Crystal report
dll, I hesitate to suggest checking whether the Cryptal Report assembly has
been checked into the prerequisites of the ClickOnce Application, and
making sure that the Create setup program to install prerequisite
components check box is selected.
http://msdn.microsoft.com/en-us/library/8st7th1x(VS.80).aspx

However, based on my tests, as long as I include the "Crystal Reports for