Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 2556

Crystal Reports assembly (ver 13, 32 bit) does not work on Win7 64bit OS

$
0
0

tried to post, and got an error (unsure if this got posted).

All below is in attachment "Problem submitted to Crystal Reports for Win7 CR assembles raises exception.xml" 

 

Please help.

 

Request/Objective:

-          Application built on win XP using VSTS 2010 needs to work on both desktops:

o   win XP (OS 32 bit) and

o   win7 (OS 64 bit).

-          How to make application that uses Crystal Reports 32 bit assembles work on win7 64 bit desktop.

-          We would like to have only one source control version for both XP and Win7 (64 bit OS).

 

Problem summary:

-          Deployed application works on XP (32 bit OS).

-          Does not work on Win7, see “Win7 (64bit OS) problem details below”

 

Building of App

1.      Application built on win XP VSTS 2010 using Crystal Report assemblies:

·         Install package used/downloaded from Crystal on both XP and win7 Link is:  32bit.msi  (Support Pack 9 (v. 13.0.9.1312)

o E.g. CrystalDecisions.CrystalReports.Engine  Version:  13.0.2000.0

 

2.      VSTS 2010 solution build:

  1. Projects uses “Any CPU”  (no other choices available) as per Project-Properties à Build tab à  Platform: “Active (Any CPU).

 

3.      App installed on both XP and Win7

·         Deployed and works on XP

·         Deployed and does not work on Win7.

 

 

Win7 (64 bit OS) problem details below

Deployed:

·         Installed:  32bit.msi  (Support Pack 9 (v. 13.0.9.1312)

·         Install of app from XP desktop dev PC.

 

Crystal Reports Exception Raised

§  Event Viewer:

Deployed 32bit Crystal Reports distributable.

 

Timestamp: 5/27/2014 8:03:28 PM

Message: System.TypeInitializationException: The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exception. ---> System.BadImageFormatException: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. An attempt was made to load a program with an incorrect format.

   at CrystalDecisions.Shared.SharedUtils..cctor()

   --- End of inner exception stack trace ---

   at CrystalDecisions.Shared.SharedUtils.GetEffectiveCulture()

   at CrystalDecisions.Shared.LocaleManager..ctor()

   at CrystalDecisions.Windows.Forms.CrystalReportViewer.InitReportViewer()

   at CrystalDecisions.Windows.Forms.CrystalReportViewer..ctor()

   at net.bmogc.cas.ui.ReportViewer.InitializeComponent()

   at net.bmogc.cas.ui.ReportViewer..ctor()

   at net.bmogc.cas.ui.ReportExplorer.OpenFileCall()

   at net.bmogc.cas.ui.ReportExplorer.ListView_MouseDoubleClick(Object sender, MouseEventArgs e)

   at System.Windows.Forms.ListView.WndProc(Message& m)

   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Category: General, UI Events

Priority: 1

EventId: 5002

Severity: Error

Title:CAS UI Exception

Machine: OCVM00000152

Application Domain:

Process Id: 8752

Process Name: C:\Program Files (x86)\BMONB\Commission Accounting System\net.bmogc.cas.ui.exe

Win32 Thread Id: 5828

Thread Name:

Extended Properties:

 

 

Microsoft’s  “Assembly Binding Log Viewer” shows late binding details below

 

*** Assembly Binder Log Entry  (28/05/2014 @ 4:14:29 PM) ***

 

The operation failed.

Bind result: hr = 0x8007000b. An attempt was made to load a program with an incorrect format.

 

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll

Running under executable  C:\Program Files (x86)\BMONB\Commission Accounting System\net.bmogc.cas.ui.exe

--- A detailed error log follows.

 

=== Pre-bind state information ===

LOG: DisplayName = log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304

(Fully-specified)

LOG: Appbase = file:///C:/Program Files (x86)/BMONB/Commission Accounting System/

LOG: Initial PrivatePath = NULL

LOG: Dynamic Base = NULL

LOG: Cache Base = NULL

LOG: AppName = net.bmogc.cas.ui.exe

Calling assembly : CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304.

===

LOG: This bind starts in default load context.

LOG: Using application configuration file: C:\Program Files (x86)\BMONB\Commission Accounting System\net.bmogc.cas.ui.exe.Config

LOG: Using host configuration file:

LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.

LOG: Post-policy reference: log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304

LOG: GAC Lookup was unsuccessful.

LOG: Attempting download of new URL file:///C:/Program Files (x86)/BMONB/Commission Accounting System/log4net.DLL.

LOG: Assembly download was successful. Attempting setup of file: C:\Program Files (x86)\BMONB\Commission Accounting System\log4net.dll

LOG: Entering run-from-source setup phase.

LOG: Assembly Name is: log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304

ERR: Invalid assembly platform or ContentType in file (hr = 0x8007000b).

ERR: Run-from-source setup phase failed with hr = 0x8007000b.

ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.


Viewing all articles
Browse latest Browse all 2556

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>