Current Position:Home > Crystal Reports 2010 shows error on 64 bit vista/7 machines

Crystal Reports 2010 shows error on 64 bit vista/7 machines

Update:10-11Source: network consolidation
Advertisement
Hello,
<br/><br/>
I search the threads before posting my problem. I saw number of threads similar to this but none of them is pointing towards solutions to my problem. Thus decided to create new one. I tried various things listed in old post to solve my problem but no solution. I am listing below what I have already tried.
<br/><br/>
Following is my development environment:<br/>
- OS windows XP 32 bit<br/>
- MS Visual Studio 2010<br/>
- Crystal Reports 2010 <br/>
- windows application with target framework 3.0<br/>
- when i build solution for client i change target platform to x86<br/>
<br/><br/>
My client machine<br/>
1)<br/>
- OS windows vista 64 bit<br/>
- Crystal Reports for VS2010 Redist 64 bit<br/>
2)<br/>
- OS windows 7 64 bit<br/>
- Crystal Reports for VS2010 Redist 64 bit<br/>
<br/><br/>
On my development machine everything works fine. Only client machines having problem opening reports. I am having problem opening reports on client machines. I shows following error. My windows application runs fine but when we try to open reports it shows log4net error.
<br/><br/>
<br/>
start error text----
<br/>
<br/>
The type initializer for 'CrystalDecisions.ReportSource.ReportSourceFactory' threw an exception.<br/>
<br/>
See the end of this message for details on invoking <br/>
just-in-time (JIT) debugging instead of this dialog box.<br/>
<br/>
Exception Text **************<br/>
System.TypeInitializationException: The type initializer for 'CrystalDecisions.ReportSource.ReportSourceFactory' threw an exception. ---> System.TypeInitializationException: The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exception. ---> 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 system cannot find the file specified.<br/>
File name: 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
   at CrystalDecisions.Shared.SharedUtils..cctor()<br/>
<br/>
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
<br/>
   --- End of inner exception stack trace ---
   at CrystalDecisions.Shared.SharedUtils.GetFullTypeName(Type type)
   at CrystalDecisions.ReportSource.ReportSourceFactory..cctor()
   --- End of inner exception stack trace ---
   at CrystalDecisions.Windows.Forms.CrystalReportViewer..ctor()
   at BackOffice.frmReportViewer.InitializeComponent()
   at BackOffice.frmReportViewer..ctor()
   at BackOffice.mdiMain.vendorsListToolStripMenuItem_Click(Object sender, EventArgs e)
   at BackOffice.mdiMain.vendorsListToolStripMenuItem1_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.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)
<br/><br/>
Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4952 (win7RTMGDR.050727-4900)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
<br/><br/>
BackOffice
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/BO%20config%20removed/BackOffice.exe
<br/><br/>
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
<br/><br/>
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
<br/><br/>
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
<br/><br/>
CrystalDecisions.Windows.Forms
    Assembly Version: 13.0.2000.0
    Win32 Version: 13.0.1.220
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Windows.Forms/13.0.2000.0__692fbea5521e1304/CrystalDecisions.Windows.Forms.dll
<br/><br/>
CrystalDecisions.Shared
    Assembly Version: 13.0.2000.0
    Win32 Version: 13.0.1.220
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Shared/13.0.2000.0__692fbea5521e1304/CrystalDecisions.Shared.dll
<br/><br/>
CrystalDecisions.ReportSource
    Assembly Version: 13.0.2000.0
    Win32 Version: 13.0.1.220
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportSource/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportSource.dll
<br/><br/>
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:
<br/>
configuration<br/>
    system.windows.forms jitDebugging="true" <br/>
configuration<br/>
<br/>
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.
<br/><br/>
end error text----
<br/><br/>
I am not using log4net in my windows application. As I know not directly. No log4net tag in config. Not even in publish file listing.<br/><br/>
I have  Crystal Decisions.CrystalReports.Engine in my reference. <br/>
                                        ReportSource<br/>
                                        Shared<br/>
                                        Windows.Forms<br/>
<br/><br/>
I tried adding reference of log4net in my app and then tried deploying. slight modified error. Instead of not find the file it says not able to load and rest error part is same.
<br/><br/>
I have excluded all crystal dll from publish file list and tried.
<br/><br/>
I even updated cilent machine with   Crystal Reports for VS2010 Redist 64 bit support pack 1.
<br/><br/>
I tried adding following in config but no result<br/>
     startup useLegacyV2RuntimeActivationPolicy="true"<br/>
       supportedRuntime version="v2.0.50727"<br/>
     startup
and
     startup useLegacyV2RuntimeActivationPolicy="true"<br/>
       supportedRuntime version="v4.0"<br/>
     startup<br/>
<br/>
I found related to this in one of the thread. I am not sure but this could be the problem. what is the solution for it?<br/>
In my development machine windows/assembly folder, there exist 2 log4net files<br/>
Assembly Name  -   version    -      Processor Architect<br/>
  - log4net           -    1.2.9.0      -    blank<br/>
  - log4net           -    1.2.10.0    -    x86<br/>
But in my client machine, there is only one log4net file.<br/>
Assembly Name -    version     -     Processor Architect<br/>
  - log4net           -    1.2.10.0    -    AMD64<br/>
<br/><br/>
I have spend lot hours on it but no output. Any help or direction is appreciated.<br/><br/>
Thanks,
Edited by: Dhairya Tolat on Mar 21, 2011 8:13 PM

The Best Answer

Advertisement
Hi deguri,
1. Are you going to sell the application(which embeds the crystal runtimes) to another company?
2. Is the application intended for users within your company?
If the answer to question 1 is a 'Yes', then you need to purchase the license.
If the answer to question 2 is a 'Yes', then you do not need the license.
Take a look at a question posted in response to the blog i referred to in my previous post. That is a typical scenario where license needs to be purchased.
We are product a client/server application in VS 2010 and would like to include Crystal Reports. The rendering/runtime would be on the server component. Our package is distributed to our clients and runs on their hardware. We would be producing the reports and shipping them with the software (i.e. no embedded designer).
Am I correct in understanding that we would need only a single SAP Developer Advantage license (~$2500 USD) and that would cover redistribution to all our our clients?
Thanks in advance!
CR for VS 2010 on Application Server
2011-06-15 14:18:50 Blair Wheadon  Business Card [Reply]
Yes, you are correct.
I hope that clarifies things...
Deepu.
  • Crystal Reports 2010 shows error on 64 bit vista/7 machines Update:10-11

    Hello, <br/><br/> I search the threads before posting my problem. I saw number of threads similar to this but none of them is pointing towards solutions to my problem. Thus decided to create new one. I tried various things listed in old post t

  • Crystal Reports 2010 SP1 on IIS 7.0 - Report is not being displayed Update:10-11

    Hi, Finally, the keycode assembly, BusinessObjects.Licensing.KeycodeDecoder.dll error is gone, after I installed Crystal Runtime 2010 SP1. Also, I tested Crystal Report 2010 SP1 on my Windows 32 application and I can tell that I do not have this erro

  • Crystal reports 2010:Failed to load database information Update:11-30

    Hi guys, I had a vb.net project with crystal reports 2010 for the reporting.The report works fine inside vs 2010.I tried to build an installer for my project using 'Advanced installer'. In Advanced installer there's an option to import the run time e

  • Keycodedecoder.dll failure still there in Crystal Reports 2010 SP1 Update:11-30

    Hi I have a problem with getting an error that busineesobjects.licensing.keycodedecoder.dll not found for version 13.0.2000.0. I am using Crystal Reports for Visual Studio 2010 Support Pack 1 (where I thougt this problem was resolved) The exception d

  • Crystal report 9 memory error. Update:10-11

    we are using crystal report 9 with sybase power builder..... at some client locations we are experiencing the application crash due to memory while opening crystal reports. the following errors were noticed 1.the instruction at "0x77124804" refe

  • Seagate Crystal Reports ActiveX Designer error '80043ac4' Update:10-11

    Website slows down when users are running reports. Users start getting errors when running any crystal report. After sometime main page itself stops loading and only static html is visible. Following is one of the errors users see: Seagate Crystal Re

  • Detail sections not displayed with Crystal Reports 2010 Runtime (SP1 also) Update:10-11

    I have migrated a VB app from RDC 9 to Crystal Reports 2010 and I'm experiencing a very strange issue. In a report with 6 nested groups, the detail part is splitted in 7 section, and the whole detail has the "keep together" flag activated. At ru

  • Crystal Reports: Print Engine Error when exporting a report Update:11-30

    We recently upgraded from Crystal Reports 2008 to BusinessObjects Edge Series X3.1. When exporting a report to an excel data-only format we get "Crystal Reports: Print Engine Error". All other formats work fine.  Any help is highly appreciated.

  • Crystal Reports version 10  error when displaying report Update:11-30

    Hello: New member here, been lurking around for a while. A lot of good information here. I do hope this is the right place to ask this first question.  I have a customer that has a Crystal Reports 10 installation and cannot display reports since he u

  • CRVS2010 Beta - Crystal Reports 2010 with VS 2010 Pro fr Update:11-30

    Hi, I fisrt use CR 2010 with Visual 2010 RC US. it works fine. After the offcial launch of VS 2010, i uninstall my VS 2010 RC to dowload the VS 2010 Pro French.I'm not able to use Crystal Reports 2010 anymore, even after uninstall/install Crystal Rep