Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Mar 22, 2011 at 05:25 AM

    Hi DKT

    > - when i build solution for client i change target platform to x86<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/>

    If you set target platform to x86 you need the VS2010 Redist 32 bit an your machine. the Redist 64 is only for 64 bit processes. x86 mean 32 bit process.

    Jürgen

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 14, 2011 at 07:10 AM

    I downloaded the CRRuntime_32bit_13_0.msi file for my application. My question is, do i need to purchase this if I want to deploy it to end users?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.