I started receiving the following error message yesterday when trying to create a new RadForm using UI for WinForms in VS2022. Any idea as to how to resolve this?
Error occurred while running wizard.
Telerik.VSX.WizardEngine.ScenarioManagerException: Category: GeneralItem template: Telerik RadForm
Item name: TestRadForm.cs
DTE version: 17.0
Original message: Sequence contains no matching element ---> System.InvalidOperationException: Sequence contains no matching element
at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source, Func`2 predicate)
at Telerik.WinControls.VSX.TemplateProcessing.WFCoreScenarioManager.Launch(IServiceProvider serviceProvider, String itemName, String scenarioPath, String scenarioName)
--- End of inner exception stack trace ---
at Telerik.WinControls.VSX.TemplateProcessing.WFCoreScenarioManager.Launch(IServiceProvider serviceProvider, String itemName, String scenarioPath, String scenarioName)
at Telerik.WinControls.VSPackage.VSCoreItemTemplateWizard.LaunchScenarioManager(ServiceProvider serviceProvider, Dictionary`2 replacementsDictionary)
at Telerik.VSX.VSPackage.WizardBase.<>c__DisplayClass11_0.<Microsoft.VisualStudio.TemplateWizard.IWizard.RunStarted>b__0()
at Telerik.VSX.VSPackage.WizardBase.CatchExceptionAndSendReport(Action action)
Hi Bob,
I am sorry to hear about the difficulties you faced using our products.The error occurs when the extension can not find a distribution that contains the package referenced in the project. This could happen if you have added the Telerik UI for the WinForms NuGet package directly through the private feed or the distribution you used to create the project is no longer available.
The easiest way to fix this would be to download the latest product version through the extension by following the steps described in this article. In case you have used an older version you will have to use an alternative installation method like:
1. Offline installer - Installing On Your Computer - Telerik UI for WinForms
2. Progress Control Panel - Installing and Removing from Progress Control Panel - Telerik UI for WinForms
Please try that and let us know the outcome.
Hello Bob,
The offline installer, the Progress Control Panel, and the NuGet feed are different ways to obtain Telerik products. They can coexist but some specifics may affect the way you use them.
Offline installer
The offline installer package has everything you need to use a product. When run it installs all the product assemblies, NuGet packages, Visual Studio extensions and/or demos. It also performs additional actions like registering the proper control version in the Visual Studio toolbox. This is the easiest way to get started.
Progress Control Panel
In essence, this is a front end for the offline installers that offers quality-of-life improvements like the ability to install, update, or remove multiple products or multiple product versions simultaneously. Behind the scenes, the Progress Control Panel works with the same offline installers that are available in the downloads page, but it automates a lot of the steps for you.
NuGet feed
This is all it says it is, an additional feed that allows you to download the Telerik products' packages and this is all you get. You need to install the Visual Studio extension yourself if you need any wizards, then you can use it to register the controls in the toolbox using the Toolbox Configurator. As you noticed not all wizards work seamlessly when using packages on the other hand using the feed offers the most lightweight "installation" as you only get the packages you need.
Looking at your case you may leave things as they are as the wizards should work now that you have a distribution installed. The only suggestion I have is to run the Toolbox Configurator mentioned above to populate the controls version you need in the Visual Studio Toolbox.
In case you have any other questions, please get back to us.