ERROR With assembly crystal report

D

DENTONE

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)
 
J

Jialiang Ge [MSFT]

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
.NET Framework 2.0" (VS2005) or "Crystal Reports Basic for Visual
Studio2008(x86,x64)" (VS2008) into the setup, I'm always able to run the
application successfully on the client side. Therefore, Dentone, would you
please confirm these three points for me?

1. In the clickonce publish.htm, do you see the "Crystal Repot" component
in the list of Prerequisites?

For example:

================================
The following prerequisites are required:
.NET Framework 2.0
Crystal Reports for .NET Framework 2.0

If these components are already installed, you can launch the application
now. Otherwise, click the button below to install the prerequisites and run
the application.
================================

2. When you click on the "Install" button, do you see a setup program
started for the "Cryptal Report" component?

3. After the installation, do you see "Cryptal Report" assemblies, e.g.
CrystalDecisions.Windows.Forms, in the system's GAC? GAC can be viewed in
the folder: C:\WINDOWS\Assembly

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top