I am working on an ASP.NET app using Visual Studio 2022, C# and running on .NET 4.8. Before using that I was using Visual Studio 2008 and .NET 3.5.
After the update, I was getting issues regarding Crystal Report and keep asking about Crystal Report runtime. I updated Crystal Report with the latest version for Visual Studio, and now I am getting a new error:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0433: The type 'CrystalDecisions.Web.CrystalReportViewer' exists in both 'c:WindowsassemblyGAC_MSILCrystalDecisions.Web10.5.3700.0__692fbea5521e1304CrystalDecisions.Web.dll' and 'c:WindowsMicrosoft.NETassemblyGAC_MSILCrystalDecisions.Webv4.0_13.0.4000.0__692fbea5521e1304CrystalDecisions.Web.dll'
Source Error:
Line 287:
Line 288: [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 289: private global::CrystalDecisions.Web.CrystalReportViewer @__BuildControlCrystalReportViewer1() {
Line 290: global::CrystalDecisions.Web.CrystalReportViewer @__ctrl;
Line 291:
Source File: c:UserszzzzzzzzAppDataLocalTempTemporary ASP.NET Filesvs96a8c4226d872058App_Web_showreport.aspx.dfa151d5.zspypq-p.0.cs Line: 289
I have no idea what this error is.
I tried to change web config file under the configuration heading of Crystal Report and change the version 10 into 13 but no luck same error I got as showed you above. after resolving this issue it should show a report.
Any help regarding this appreciated