Completed
Last Updated: 16 Dec 2024 13:31 by ADMIN
Release 9.0.0
Luis
Created on: 15 Nov 2024 16:07
Category: UI for .NET MAUI
Type: Bug Report
0
FileNotFoundException in NET 9 when using .NET MAUI Project and adding Telerik Nuget Package

"System.IO.FileNotFoundException: 'Could not load file or assembly 'Microsoft.Maui.Controls.Compatibility, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.'"

Occurs when creating a blank .net maui project using .net9 and adding Telerik MAUI NuGet Package latest version 8.0.0

Repro steps:

1. Create a new dotnet9 basic project in visual studio.
2. Launch it on windows. it runs.
3. Add the Telerik.UI.for.Maui.Trial package, version 8. (don't bother adding the UseTelerik line to MauiProgram.cs, it'll fail either way).
4. Clean and Rebuild the solution.
5. Debug the app on windows again. It fails on launch with a file not found error that seems to relate to:
"Exception thrown: 'System.IO.FileNotFoundException' in Telerik.Maui.Controls.Compatibility.dll"
System.IO.FileNotFoundException: 'Could not load file or assembly 'Microsoft.Maui.Controls.Compatibility, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.'

1 comment
ADMIN
Didi
Posted on: 15 Nov 2024 20:07

Review the available workarounds described in the following troubleshooting article: https://docs.telerik.com/devtools/maui/knowledge-base/maui-compatibility-net-telerik-nuget-filenotfoundexception  

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.