ScenarioManagerException error trying to add a new RadForm

0 Answers 41 Views
Form
Bob
Top achievements
Rank 1
Bob asked on 05 Jun 2024, 08:32 PM

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: General
Item 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)
Nikola
Telerik team
commented on 06 Jun 2024, 09:31 AM

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.
Bob
Top achievements
Rank 1
commented on 06 Jun 2024, 01:25 PM

Thanks for your help.  I am new to Telerik UI for WinForms.  I wasn't sure what version I had installed.  I now see that I had the 2024 Q1 version installed.  I just installed the 2024 Q2 version and my problem has been resolved.  But now I am wondering if I didn't install things correctly initially.  I initially downloaded UI for WinForms from my product downloads page.  Things didn't initially work, so I added a NuGet package source to the Telerik nuget location (https://nuget.telerik.com/v3/index.json).  However, looking through Windows Explorer, I now notice a VSExtensions foler under "Telerik UI for WinForms 20224 Q2".  Should I remove the Telerik NuGet package source?  Is that causing the problem?  If I understand the "Offline installer" instructions above correctly, running the install from my product download page should install the extensions.  I need a little education on how to properly install this product.  I am wondering if this problem was caused by how I installed the product.
Bob
Top achievements
Rank 1
commented on 06 Jun 2024, 01:40 PM

When I look at the items in my Visual Studio Toolbox, they still show Q1 (NuGet) at the end of each section heading.  So, I'm thinking I don't have something setup correctly.
Nikola
Telerik team
commented on 10 Jun 2024, 06:40 AM

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.

No answers yet. Maybe you can help?

Tags
Form
Asked by
Bob
Top achievements
Rank 1
Share this question
or