cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrading to Visual Studio 2022 Professional

roberthoberman
Discoverer
0 Kudos

I upgraded to Visual Studio Professional 2022 and installed the Crystal Reports for Visual Studio 2022. When I run my project and select a form that has a Crytal Report embedded in it, I am getting the following Inner Exception error messages:

Exception 1 - TypeInitializationException: The type initializer for 'CrystalDecisionsReportSource.ReportSourceFactory' thew an execption

Exception 2 - TypeInitializationException: The type initializer for 'CrystalDecisions.Shared.SharedUtils' thew an execption

Exception 3 - FileNotFoundException: Could not load file or assembly 'log4net, Version 1.2.10.0,Culture=neutral

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

File is located here:

C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\dotnet\iPoint

Does it exist?

If not check your AV software, it's likely deleting it or blocking it from being installed.

Also you MUST install the EXE by right clicking and selecting Run as Administrator, even if you are logged in as a local Admin.

Answers (1)

Answers (1)

roberthoberman
Discoverer
0 Kudos

log4net.dll exists in that file folder. I uninstalled and re-installed the EXE as Administrator and I am still getting the same exception. Additionally, i noticed:

1) The References for the Crystal Reports dll's in my Project point to the following file folder - C;\MyProcectName\bin\Debug\ - However, all of the dll's in that file foilder are dated from 6 years ago. There are no new Crystal Reports dll's in that file folder

2) If I try to open the Form that has the Crystal Report in it, I am getting the following two errors and it forces Visual Studio 2022 to freeze, close down and re-open. The two errors are - The located assembly's manifest does not match the assembly reference. (Exception from HRESULT: hex address) and the second error message is The variable "CrystalReportViewer1" is either undeclared or was never assigned.

Does anyone have any suggestions?