Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 17th, 2007, 04:06 AM
Authorized User
 
Join Date: Oct 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Type initializer Error


Hi all

I have deployed a VB.Net project in a client's computer. But I am getting an error when I click to view the crystal report.

the error says

The type initializer for Crystaldecisions.CrystalReports.Engine.ReportDocum ent threw an exception

Everyhing is working in my computer. I have imported the assemblies

CrystalDecisions.Shared.dll
CrystalDecisions.CrystalReports.Engine.dll
CrystalDecisions.ReportSource.dll
CrystalDecisions.Windows.form.dll


Can anybody please help?

Thanks in advance




 
Old February 14th, 2008, 02:39 PM
Registered User
 
Join Date: Feb 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Worked Solution (Thanks to Mike! http://forums.microsoft.com/msdn/Sho...postid=2846285):

1. First Build your project for platform x86 (Project - Properties - Build - Target Platform - x86)

2. Then install this script on the Target machine (where you intend to run your Application):

    (Because my Application was working fine on my Development Machine which had Visual Studio, Crystal Reports installed and was failing on Deployment machine which had none)

C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\CrystalReports\CR Redist2005_x86.msi

You'll notice that Business Objects were copied (C:\Program Files\Common Files\Business Objects)

and Crystal Reports for .NET Framework 2.0 (x86) in the (Control Panel - Add Remove Programs)

Not sure, if your machine is a 64-bit, running
    C:\Program Files\Microsoft Visual Studio 8\Crystal Reports\CRRedist\X64\CRRedist2005_X64.msi
would fix it ???

Good Luck!

-ap

ap





Similar Threads
Thread Thread Starter Forum Replies Last Post
hi i got runtime error 13 Type Mismatch error sriharsha345 Access VBA 2 February 21st, 2008 09:30 AM
Error Type: (0x80004005) Unspecified error wilfree Classic ASP Databases 3 April 3rd, 2007 09:04 AM
error type p2ptolu Classic ASP Databases 1 March 29th, 2005 09:26 AM
ERROR TYPE youyou_hym Dreamweaver (all versions) 1 January 12th, 2005 03:13 AM
Data Type error but it is the correct type Mitch SQL Server 2000 2 March 19th, 2004 11:31 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.