WPF.Toolkit IntegerUpDown throwing Visual Studio visual designer error: Could not load type 'System.Int32?' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. 114

Mike Whalley 71 Reputation points
2021-12-06T17:05:36.473+00:00

Since updating to Visual Studio 22 and Windows 11, loading my project produces the above error in my WPF user interfaces when using InterUpDown or DecimalUpDown user controls. The Project builds and runs successfully, however. I have tried re-loading the Wpf Toolkit (latest version 4.2.0).
Why is this error being thrown and how can I remove it?

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,700 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,524 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Karen Payne MVP 35,286 Reputation points
    2021-12-06T23:42:01.99+00:00

    There is an open question at the repository site which has no resolution.

    I would try to delete the obj folder, clean then rebuild the project.