Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 

News:



Author Topic: Crystal Report Problem  (Read 22867 times)

guvenar

  • **
  • Posts: 34
    • View Profile
Crystal Report Problem
« on: May 05, 2012, 04:10:46 AM »
Hello,

I am trying to create a report with Crystal Reports. I added the related DLLs to my application and now I am getting this error:

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

As I searched, the problem may be the different versions of Crystal Reports (x86 and x64) installed on the server. Please see:

http://stackoverflow.com/questions/4208516/crystal-reports-error-when-deployed-could-not-load-file-or-assembly-log4net

http://scn.sap.com/thread/1857957

Could someone help me for the correct DLLs and assemblies?

Thanks in advance.
Regards.

rich568117

Re: Crystal Report Problem
« Reply #1 on: May 05, 2012, 04:35:59 AM »
I have setup a support ticket to best handle this issue.
I will PM you the ticket number. You will also receive an email.

Thank you.

guvenar

  • **
  • Posts: 34
    • View Profile
Re: Crystal Report Problem
« Reply #2 on: May 05, 2012, 04:45:41 AM »
Thanks Richard! I already received the ticket.

guvenar

  • **
  • Posts: 34
    • View Profile
Re: Crystal Report Problem
« Reply #3 on: May 05, 2012, 10:18:28 AM »
Hello,

The ticket is there but I haven't received any response yet. Maybe there are some users who use Crystal Reports as well so we can share some information.

Thanks.

Tom

  • *****
  • Posts: 372
    • View Profile
Re: Crystal Report Problem
« Reply #4 on: May 05, 2012, 10:34:54 AM »
...

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

...

Well, the error message indicates that ASP.NET cannot find the log4net assembly in your application's bin folder. So, just upload the assembly to resolve the issue.

EDIT: Make sure to upload the proper version or change the version required in your application's configuration. The log4net assemblies can be found at http://logging.apache.org/log4net/index.html. I would recommend that you download the latest version (currently 1.2.11) and change the version in your application's configuration. The old log4net version (1.2.10) can be found at http://archive.apache.org/dist/incubator/log4net/.

-Tom
I <3 Arvixe
« Last Edit: May 05, 2012, 11:08:58 AM by Tom »

guvenar

  • **
  • Posts: 34
    • View Profile
Re: Crystal Report Problem
« Reply #5 on: May 05, 2012, 11:58:22 AM »
Hello Tom,

I tried both of them (Versions 1.2.10 and 1.2.11). I put the dll and xml files to the Bin directory but nothing changed. I wonder if something is related with these proposals:

http://stackoverflow.com/questions/4208516/crystal-reports-error-when-deployed-could-not-load-file-or-assembly-log4net
http://scn.sap.com/thread/1857957

Maybe someone has to check if the installed Crystal Reports on the server complies with the server.

Thanks.

Tom

  • *****
  • Posts: 372
    • View Profile
Re: Crystal Report Problem
« Reply #6 on: May 05, 2012, 02:57:31 PM »
Well, the error message is not related to Crystal Reports in the first place. Whenever an application is referencing an assembly, ASP.NET searches the application's bin folder first and if the assembly is not found, ASP.NET searches the GAC (global assembly cache) next -- in short terms, it doesn't matter where the assemblies are installed; they just have to be in the ASP.NET search path. However, if not found in GAC either, you get that error message.

So, either log4net.dll is not in the application's bin folder, the wrong log4net.dll assembly has been deployed (i.e. for mono instead of .NET Framework 2.0), log4net.dll has been compiled from source code for x64 or Itanium, or the application pool's version is not 2.0 (assuming the log4net.dll assembly has been downloaded from the official download page, which doesn't offer an ASP.NET 4.0 version for log4net.dll 1.2.10).

However, if your application is running in wwwroot, is compiled against 32-bit assemblies, is using the 'log4net for .NET Framework 2.0' version of the log4net.dll assembly (compiled for the x86 platform), all assemblies required are deployed to the application's bin folder, and the application pool is set to 2.0, it should work.

EDIT: For the sake of accuracy. .NET assemblies built against earlier versions of the .NET Framework (i.e. 1.1 and 2.0) should work with applications built against the .NET Framework 4 as well -- although, .NET Framework 4 introduces some breaking changes that might cause those assemblies to stop working as expected under .NET Framework 4. However, log4net.dll 1.2.10 is known to have '.NET Framework 4' issues and running it under .NET Framework 2 should resolve those issues.

-Tom
I <3 Arvixe
« Last Edit: May 06, 2012, 07:23:40 PM by Tom »

guvenar

  • **
  • Posts: 34
    • View Profile
Re: Crystal Report Problem
« Reply #7 on: May 06, 2012, 05:26:55 AM »
Hi Tom,

I am using AJAX Toolkit in my project so when I changed the framework to 2.0, it started giving errors because of the toolkit. I can remove the toolkit from my project to try it but at the end I need it for my project.

Moreover, from the log4net website, I downloaded the "log4net-1.2.11-bin-newkey" version which has the files for 4.0. I also changed the assembly version. But always same error.

I suppose there are some users who are using Crystal Reports without any problem. Maybe they can assist me how to do it.

Thanks.
Regards.

Tom

  • *****
  • Posts: 372
    • View Profile
Re: Crystal Report Problem
« Reply #8 on: May 06, 2012, 07:19:46 AM »
Well, if you want to utilize log4net.dll version 1.2.11, your application must reference that version. Otherwise, you won't get rid of the 'Could not load file or assembly 'log4net, Version=1.2.10.0 ... The system cannot find the file specified.' error message.

Could you post the error message you get related to Crystal Reports?

-Tom
I <3 Arvixe

guvenar

  • **
  • Posts: 34
    • View Profile
Re: Crystal Report Problem
« Reply #9 on: May 06, 2012, 11:34:08 AM »
Hi,

This is the error:

Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

And the dll file (http://archive.apache.org/dist/incubator/log4net/1.2.10/) is in the Web.config file..

It is so strange.

Tom

  • *****
  • Posts: 372
    • View Profile
Re: Crystal Report Problem
« Reply #10 on: May 06, 2012, 01:31:57 PM »
I have switched your application pools to 'Integrated' mode and copied the log4net.dll assembly from http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533353330333833353334%7D.do to your bin folder (renamed the old log4net.dll assembly to log4net.dll.bak). At least, the error message is gone and a blank page is showing up instead. Please let us know how it works for you.

EDIT: I have also updated your ticket providing additional information.

-Tom
I <3 Arvixe
« Last Edit: May 06, 2012, 07:25:48 PM by Tom »

guvenar

  • **
  • Posts: 34
    • View Profile
Re: Crystal Report Problem
« Reply #11 on: May 07, 2012, 01:33:53 AM »
Hi Tom,

Thanks for the support. It was really useful to eliminate the log4net problem.

However, now, I receive another error:

An error has occurred while attempting to load the Crystal Reports runtime.
Either the Crystal Reports registry key permissions are insufficient, or the Crystal Reports runtime is not installed correctly.
Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports
runtime (x86, x64, or Itanium) required.  Please go to http://www.businessobjects.com/support for more information.

Could you please assist me for this also?

Thanks in advance.
Regards.

Tom

  • *****
  • Posts: 372
    • View Profile
Re: Crystal Report Problem
« Reply #12 on: May 07, 2012, 08:29:47 AM »
Well, there are a bunch of different versions, builts, and flavors of Crystal Reports around and until you provide those details, it's a guessing game. Maybe you can post information about the Crystal Reports package -- including package name, version, built number, platform (i.e. x86), bitness (32-bit or 64-bit), download link, etc. --, you have installed on your developer box? Thanks.

-Tom
I <3 Arvixe

guvenar

  • **
  • Posts: 34
    • View Profile
Re: Crystal Report Problem
« Reply #13 on: May 07, 2012, 11:10:08 AM »
Hi Tom,

Based on my search, you have install this one to the server:

http://downloads.businessobjects.com/akdlm/crnetruntime/clickonce/CRRuntime_32bit_13_0_3.msi

Thanks.


guvenar

  • **
  • Posts: 34
    • View Profile
Re: Crystal Report Problem
« Reply #14 on: May 08, 2012, 03:56:55 AM »
I believe I attached all the required files to my application. Please see below for detailed information.

This is my config file:

<system.web>
    <compilation debug="true" targetFramework="4.0">
      <assemblies>
        <add assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        <add assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        <add assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        <add assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
      </assemblies>
      <buildProviders>
        <add extension=".rpt" type="CrystalDecisions.Web.Compilation.RptBuildProvider, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
      </buildProviders>
    </compilation>
    <httpHandlers>
      <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
    </httpHandlers>
    <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
  </system.web>

And the DLLs for 32-bit were put to the Bin directory:

CrystalDecisions.CrystalReports.Engine.dll
CrystalDecisions.ReportSource.dll
CrystalDecisions.Shared.dll
CrystalDecisions.Web.dll
CrystalDecisions.ReportAppServer.ClientDoc.dll

I also put the other DLLs found in "C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet" directory.

As I searched the error on forum sites, maybe you can try this option:

Follow the steps for "Global Settings" to make the change for all applications on your server.  To do one application, then follow the application-level steps.

This is due to CR being a 32-bit app running on a 64-bit server.  The server needs to be configured to run 32-bit apps in 32-bit mode.  This is an issue that is not unique to Crystal Reports.  To configure the server to run 32-bit apps, due the following:
Global Setting:
Go to IIS
Select the server (e.g.: MyServerName)
Select Configuration Editor
You will see a drop-down combo box titled “Section:”.  Click on it.
Select system.applicationHost/applicationPools
Expand applicationPoolDefaults
Set enable32BitAppOnWin64 to “True”

Application-level setting:
Go to IIS
Click on “Application Pools”
Select the application you want to modify (e.g.: SuperApp)
Right click on that application
Left click on Advanced Settings
Set Enable 32-Bit Applications to “True”


Thanks in advance.

Regards.

 

Web Hosting

Linux Hosting
ASP .NET Hosting
Business Hosting
Reseller Hosting
Dedicated Servers

Server Alerts
Acceptable Use Policy
Terms of Service
Privacy Policy

Affiliate Program
Site Map

Blog  Hosting

WordPress Hosting
ExpressionEngine Hosting
Movable Type Hosting
Habari Hosting
Textpattern Hosting


CMS  Hosting

Joomla Hosting
Drupal Hosting
MODX Hosting
Concrete5 Hosting
Xoops Hosting
Ecommerce  Hosting

nopCommerce Hosting
OpenCart Hosting
Magento Hosting
osCommerce Hosting
Tomato Cart Hosting


Video Sharing Software  Hosting

ClipBucket Hosting
PHPMotion Hosting
ClipShare Hosting
osTube Hosting
vShare Hosting
Forum  Hosting

XenForo Hosting
vBulletin Hosting
MyBB Hosting
phpBB Hosting
Simple Machines Hosting


Social Network and Community Website  Hosting

SocialEngine Hosting
Elgg Hosting
Dolphin Hosting
phpfox Hosting
OxWall Hosting
Copyright © 2003-2014 Arvixe, LLC. All trademarks are property of their legal owner.