1

I have a project on WPF .NET Core. I added another project for Crystal Reports and I am trying to invoke the report window from inside main project.

Not implemented, this message appears:

System.BadImageFormatException: 'Could not load file or assembly' CrystalReportWpfApplication1, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = null '. An attempt was made to load a program with an incorrect format.

The calling code is:

new CrystalReportWpfApplication1.Window1().Show();
timnavigate
  • 741
  • 4
  • 12
  • 23
  • Maybe you can add some more details about the two projects and how they should work together – juliushuck Jul 01 '20 at 18:50
  • it would appear that the assemblies may be of differing architectures as in here: https://stackoverflow.com/questions/5229310/system-badimageformatexception-could-not-load-file-or-assembly – rufw91 Jul 02 '20 at 11:39
  • 1
    The error message has changed System.Windows.Markup.XamlParseException: 'The invocation of the constructor on type 'SAPBusinessObjects.WPF.Viewer.ViewerCore' that matches the specified binding constraints threw an exception.' – خالد بشير Jul 02 '20 at 15:33

0 Answers0