Sitefinity CMS version 11.1 ships with an updated reference to System.Web.OData. This updated reference has a chain of dependent references that get added when you use the NuGet package. When using Visual Studio versions 15.8.0 and above, Visual Studio automatically adds assembly binding redirect for the following assemblies:
It redirecting them to .NET Framework version 4.7.2. Because Sitefinity CMS 11.0 and above is built with .NET Framework 4.7.1, on runtime you get the assembly reference error.
The exception occurs in the following format:
Could not load a reference assembly for execution
Remove the assembly binding redirects in your web.config for the following assemblies:
Save the web.config and run your project.
Optional step: Delete the incorrectly added assemblies
Although they will no longer cause any issues, you can also manually delete the following assemblies, targeting .NET Framework version 4.7.2 from your Sitefinity CMS project bin folder:
If you rebuild your project, the assemblies will no longer be present in the bin folder.
Use Visual Studio versions prior to 15.8.0 or Visual Studio 2017 15.9
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important
Copyright © 2023 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.
Progress, Telerik, Ipswitch, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.
Powered by Progress Sitefinity