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
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.
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/>
My client machine<br/>
- OS windows vista 64 bit<br/>
- Crystal Reports for VS2010 Redist 64 bit<br/>
- OS windows 7 64 bit<br/>
- Crystal Reports for VS2010 Redist 64 bit<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.
start error text----
The type initializer for 'CrystalDecisions.ReportSource.ReportSourceFactory' threw an exception.<br/>
See the end of this message for details on invoking <br/>
just-in-time (JIT) debugging instead of this dialog box.<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=, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.<br/>
File name: 'log4net, Version=, Culture=neutral, PublicKeyToken=692fbea5521e1304'
   at CrystalDecisions.Shared.SharedUtils..cctor()<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].
   --- 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)
Loaded Assemblies **************
    Assembly Version:
    Win32 Version: 2.0.50727.4952 (win7RTMGDR.050727-4900)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    Assembly Version:
    Win32 Version:
    CodeBase: file:///C:/BO%20config%20removed/BackOffice.exe
    Assembly Version:
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/
    Assembly Version:
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/
    Assembly Version:
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/
    Assembly Version: 13.0.2000.0
    Win32 Version:
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Windows.Forms/13.0.2000.0__692fbea5521e1304/CrystalDecisions.Windows.Forms.dll
    Assembly Version: 13.0.2000.0
    Win32 Version:
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Shared/13.0.2000.0__692fbea5521e1304/CrystalDecisions.Shared.dll
    Assembly Version: 13.0.2000.0
    Win32 Version:
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportSource/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportSource.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 section.
The application must also be compiled with debugging
For example:
configuration<br/> jitDebugging="true" <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.
end error text----
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/>
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.
I have excluded all crystal dll from publish file list and tried.
I even updated cilent machine with   Crystal Reports for VS2010 Redist 64 bit support pack 1.
I tried adding following in config but no result<br/>
     startup useLegacyV2RuntimeActivationPolicy="true"<br/>
       supportedRuntime version="v2.0.50727"<br/>
     startup useLegacyV2RuntimeActivationPolicy="true"<br/>
       supportedRuntime version="v4.0"<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           -      -    blank<br/>
  - log4net           -    -    x86<br/>
But in my client machine, there is only one log4net file.<br/>
Assembly Name -    version     -     Processor Architect<br/>
  - log4net           -    -    AMD64<br/>
I have spend lot hours on it but no output. Any help or direction is appreciated.<br/><br/>
Edited by: Dhairya Tolat on Mar 21, 2011 8:13 PM

The Best Answer

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...
  • 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 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