cancel
Showing results for 
Search instead for 
Did you mean: 

Error upgrading to SP26 in Visual Studio 2019

former_member657844
Participant
0 Kudos

The type 'ReportDocument' exists in both 'CrystalDecisions.CrystalReports.Engine, Version=13.0.4000.0' and 'CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0' in CrystalFormViewer.cs.

In my winforms.proj file (.net v4.7.2) I see a reference to Version=13.0.4000.0 but I can't find a reference to 13.0.2000.0 anywhere in the solution. I also have a v4.7.2 class library referencing 13.0.4000.0.

I deleted the bin and obj directories in both projects and still get this error.

I cannot build and run the application. This is urgent.

View Entire Topic
0 Kudos

Robert found the cause when I suggested checking all of the app.config files.

Once of the parts has a reference and loading the CR nuget package.

He removed that and it now builds completely.

Also noted was the actual error:

The error is: A reference to CrysalDecisions.CrystalReports.Engine could not be added. This component is already automatically referenced by the build system

So I googled it and found this link, not the engine but explains what is happening:
https://stackoverflow.com/questions/25394979/add-a-reference-to-system-core-when-its-already-referen...

Issue closed