Print Page | Close Window

Visual Studio 2017 Crystal reports issue

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Writing Code
Forum Discription: .NET programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22904
Printed Date: 25 Apr 2024 at 12:52am


Topic: Visual Studio 2017 Crystal reports issue
Posted By: Tvalone
Subject: Visual Studio 2017 Crystal reports issue
Date Posted: 05 Oct 2020 at 7:53am
I have a .net app written in c#. My desktop was upgraded to a laptop (yay....) The references were copied over and VS was installed on the laptop. I installed crystal on the laptop and added the references back to get the app to build without error. However when I test the app in VS I get this error.

The type initializer for 'CrystalDecisions.CrystalReports.Engine.CRPE' threw an exception

I cannot for the life of me figure out what the issue is.



Replies:
Posted By: lockwelle
Date Posted: 05 Oct 2020 at 11:47am
First thing that comes to mind is, is the connection string for the report the same? Perhaps you need to set the connection string for the report in code.

Of course the other thought is, does the report work in the crystal designer? That might help in troubeshooting.

HTH



Print Page | Close Window