I used the upgrade wizard to download the latest version and I'm getting this error message on pages that have the components:
Could not load file or assembly 'Telerik.SvgIcons, Version=1.0.0.0, Culture=neutral, PublicKeyToken=20b4b0547069c4f8' or one of its dependencies. The system cannot find the file specified.
2 Answers, 1 is accepted
Installing the following via the nuget package solved it for me.
Telerik.FontIcons, Telerik.SvgIcons
PakageManager Command:
Install-Package Telerik.FontIcons -Version 1.0.2
Install-Package Telerik.SvgIcons -Version 1.0.2
or Nuget Packeage Manager
More errors, this time with spreadsheets.
Could not load file or assembly 'Telerik.Web.Spreadsheet, Version=2023.1.314.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Just add a reference.
The file can be found in the installed folder.
The default installed path is:
C:\Program Files (x86)\Progress\Telerik UI for ASP.NET MVC R1 2023\spreadsheet\binaries\net40
The language is Korean, but the location is thought to be the same.
I tried this and it still doesn't work when I publish my application. Looks like I'll have to continue holding off on updating to the latest version.
If anyone knows any good alternatives to Telerik, let me know. I only use the Grid, Spreadsheet and File Upload.
Vishaal,
We recommend upgrading the Telerik Visual Studio Extension. You can find the latest version of the extension for Visual Studio 2022 here: https://marketplace.visualstudio.com/items?itemName=TelerikInc.ProgressTelerikASPNETMVCVSExtensions
Close all Visual Studio instances, download the installer and run it. It will update the Visual Studio extension.
If afterwards you still face any issues with the Upgrade Wizard, please provide more details on what exactly does not work and what exception you get.
I have the latest version of the extension.
I upgraded using the wizard. Everything works fine on my local machine while debugging.
I used my webdeploy process to publish the application.
I have a feature in my application that allows you to use the File Upload and parse an Excel file. This is the error message I get:
--
Could not load file or assembly 'Telerik.Web.Spreadsheet, Version=2023.1.314.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
--
- This was not an error before the upgrade.
- I can revert the upgrade and it works perfectly.
Vishaal,
This is a standard System.IO.FileLoadException error thrown by the MVC framework. You can find suggestions on how to fix it in this thread in Microsoft's forums: https://social.msdn.microsoft.com/Forums/en-US/0ad5f2d0-3a58-4a60-98a0-ed4f7b554cbc/mvc5-web-app-runtime-error-could-not-load-file-or-assembly-systemwebmvc-or-one-of-its?forum=aspmvc
You can also check out this stackoverflow thread, where additional suggestions are provided: https://stackoverflow.com/questions/41161643/could-not-load-file-or-assembly-or-one-of-its-dependencies-after-publish
I'm having the same problem.
Hello,
Jaeho's post from 16 March is correct. Installing the two missing packages will resolve the exception:
Telerik.FontIcons
Telerik.SvgIcons
The exception is a known issue in version 2023.1.314. With the new version the 2 new packages are supposed to be added to the project after running the Upgrade Wizard: Telerik.FontIcons and Telerik.SvgIcons. The team working on our Visual Studio extensions will fix the problem, so that the packages are properly added by the Upgrade Wizard itself. But until a fix becomes available the error can be resolved by installing the packages from the NuGet package manager manually.
@Ivan Danchev
Do you have a timeline on when this will be fixed?
I dont know why there is a need to install SvgIcons. In any case, I am trying to install it but am curious why is it dependent on these many dependencies? Something doesnt feel correct. Can you please provide your inputs. Thank you.
The Telerik.SvgIcons package contains type definitions and metadata for the svg icons that were introduced in the suite in R1 2023 SP1. For more details on the support of svg icons, refer to this article: https://docs.telerik.com/aspnet-mvc/styles-and-layout/sass-themes/svg-icons
The Telerik.SvgIcons package depends on .NetStandard v1.1 (see the attached screenshot)
The fix will be added with an update of the Extension in the VS Marketplace: https://marketplace.visualstudio.com/items?itemName=TelerikInc.ProgressTelerikASPNETMVCVSExtensions
However, currently we have no specific date to share yet.
Thank you for reporting the missing dependencies in the .nuspec file. We've logged it and will update the dependencies.