on 03-21-2011 7:13 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you intend to deploy the application externally outside of your organisation wherein multiple users would access the runtime, you will need to purchase a license called Crystal Reports developer advantage...
More details in this [blog|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/18826] [original link is broken] [original link is broken];
Deepu.
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.
Hi Deguri,
See if below articles help ,
[SAP Crystal Solutions Licensing|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/70bd6328-4128-2d10-7882-d7b95418dbaa]
[Crystal Reports for Visual Studio 2010 Licensing|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/18826] [original link is broken] [original link is broken];
Hope it helps,
Thanks,
Bhushan.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.