on 11-16-2022 6:16 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.