Reputation: 829
Last week I did a windows 10 update to version 1607. This update also installed .NET Framework 4.6.2.
In our WPF application we use devexpress XtraReports v13.2.
At runtime the software now crashes when we try to show the report (LoadLayout step)
I get this exception:
The type 'System.Attribute' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
There is a similar inner exception comming from devexpress:
Inner Exception 1: Type: DevExpress.XtraReports.Serialization.XRSerializationException Message: 0: The type 'System.Attribute' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
This all work fine before the update. Any Ideas what could cause this?
Upvotes: 1
Views: 1474
Reputation: 5708
Additional information work for me .
Add this on application startup event WinMDFix.Helper.Replace();
public partial class App : Application { private void Application_Startup(object sender, StartupEventArgs e) { WinMDFix.Helper.Replace(); } }
Upvotes: 0
Reputation: 829
I've reacted on a ticket on the devexpress site (the issue also occurred in later versions, it only happens when a touch screen is attached) They've provided a fix. https://www.devexpress.com/Support/Center/Question/Details/T431199
Upvotes: 1
Reputation: 17850
Last week I did a Windows 10 update to version 1607. This update also installed .NET Framework 4.6.2. In our WPF application we use DevExpress XtraReports v13.2.
Take a look at the DevExpress WinForms Controls system requirements page - there is no official support for .NET 4.6 version in v 13.2.
Thus you should upgrade your XtraRepors at least to 14.2 version.
Upvotes: 0