0
votes

In VS2022 I made a Prism MVVM solution with three projects with .net 6 .To use crystal reports I added a fourth project in .net framework (4.8). This project I trimmed down to a class library and user-controls in the view model folder. When I run this the views from both module project (core 6.0 and framework 4.8) display fine. When I add the crystal report viewer in code(or xaml), it stops on the following exception: Could not load type 'System.Web.UI.Control' from assembly 'System.Web, and Message=The invocation of the constructor on type 'SAPBusinessObjects.WPF.Viewer.ViewerCore' that matches the specified binding constraints threw an exception. The available System.Web does not have UI.Control and when I get something similar from else where there seems to be a conflict. I have the project also in just framework 4.8 without this problem .