Could not load file or assembly 'System.Reflection.TypeExtensions, Version=4.1.0.0, Culture=neutral, PublicKeyToken=XXXXXXXXX'. The system cannot find the file specified.

1 Answer 37 Views
General Discussions
Aamir
Top achievements
Rank 1
Aamir asked on 20 Feb 2024, 05:53 PM | edited on 20 Feb 2024, 05:53 PM
I am using Telerik.UI.for.AspNet.Core version 2023.1.314 in .NET Core project which uses System.Reflection.TypeExtensions. The deployed version is working fine but occasionally it give me error  Could not load file or assembly 'System.Reflection.TypeExtensions, Version=4.1.0.0. After restart of app pool it works fine again. Not sure what the problem is. Please help. Thank you

1 Answer, 1 is accepted

Sort by
0
Anton Mironov
Telerik team
answered on 23 Feb 2024, 02:14 PM

Hello Aamir,

Thank you for the details provided.

I am not sure how the TypeExtensions Class is connected with the Telerik UI for ASP.NET Core Components, but I did some research for the case, and here is what I could recommend:

  • Make sure that your project's web.config (for .NET Framework) or app.config (for .NET Core) file has the correct assembly binding redirects. Sometimes, different parts of your application or different dependencies might expect different versions of the same assembly.
  • Verify that the correct version of the System.Reflection.TypeExtensions assembly is deployed in your application's bin directory or is properly referenced in the project.
  • Ensure that all your NuGet packages, including Telerik UI for ASP.NET Core and any related system packages, are updated to their latest stable versions. Sometimes, these issues are resolved in newer versions of the libraries.

I hope this information helps.

Kind Regards,
Anton Mironov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages. If you're new to the Telerik family, be sure to check out our getting started resources, as well as the only REPL playground for creating, saving, running, and sharing server-side code.
Tags
General Discussions
Asked by
Aamir
Top achievements
Rank 1
Answers by
Anton Mironov
Telerik team
Share this question
or