After updating a working .NET 5 project to .NET 6 and upgrading Nuget package Telerik.UI.for.AspNet.Core from 2021.2.511 to 2022.2.510, I am now receiving an error using IntegerTextBoxFor on an object property model. The error is
FileNotFoundException: Could not load file or assembly 'Microsoft.DotNet.InternalAbstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
Below are screen shots of:
- The exception
- The Nuget packages 1.) From the .NET 5 working solution and 2.) from the .NET 6 solution that crashes.
- The line of code that causes the exception. Note that if I bind to a simple property instead of a complex object property, the error does not happen.
Nuget Package Telerik.UI.for.AspNet.Core
The Nuget package on the left is referencing version 2021.2.511. As you can see, that version includes a reference to the file that is causing the error, which is Microsoft.DotNet.InternalAbstractions. The package on the right is referencing the latest version 2022.2.510 and that package does not include the file that is causing the error.
@(Html.Kendo().IntegerTextBoxFor(x => x.Product.Odometer) .Min(0) .Culture(Localizer.CultureCode) )
If this file is still a dependency of that particular Telerik package, why is it missing? And please advise on how to fix this.
Thank You,
dbeard