Resolving Error During ASP.NET AJAX Solution Update with Visual Studio Extensions
Environment
Product | Installer and VS Extensions for ASP.NET AJAX |
---|---|
Version | all |
Description
When attempting to update an ASP.NET AJAX solution using Telerik UI for ASP.NET AJAX Visual Studio Extensions, you might encounter the error: "An error occurred while running the wizard. Error executing custom action Telerik.Web.UI.VSX.Actions.MultiProjectUpdateReferencesAction: System.Runtime.InteropServices.COMException (0x80004005): This reference cannot be removed from the project because it is always referenced by the compiler."
This issue generally occurs under two conditions: when the project uses NuGet package references instead of assembly references, or when the installation of the product version currently referenced in the project has been removed.
Cause
The Upgrade Wizard is designed to work with assembly references and cannot proceed with NuGet package references. Alternatively, the error may arise if the referenced version of Telerik UI for ASP.NET AJAX is not installed on the machine.
Solution
-
For Projects with NuGet Package References:
- Bypass the Upgrade Wizard for updating Telerik references.
- Utilize the NuGet Package Manager in Visual Studio to manage and update the Telerik UI for ASP.NET AJAX packages.
- Follow the guidelines for setting up the Telerik private NuGet feed as detailed in this documentation.
-
For Missing Referenced Version Installation:
- Remove all Telerik UI for ASP.NET AJAX references from the project.
- Clean the solution to remove any temporary files and cache.
- Use the Telerik UI for ASP.NET AJAX Convert Wizard to add the necessary assemblies with the updated version back into the project.