telerik upgrade project illegal characters in path

0 Answers 46 Views
General Discussions
James
Top achievements
Rank 1
James asked on 02 Sep 2022, 10:09 AM

Hi, when i try and upgrade my telerik solution to the latest version via the Visual Studio extension in vs2022, i get the following error

System.ArgumentException: Illegal characters in path.
   at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
   at System.IO.Path.Combine(String path1, String path2)
   at Telerik.VSX.Internal.ProjectManagement.ProjectFileLocator.GetProjectItemPathsRecursive(String projectItemName, ProjectItems projectItems, String pathSoFar, IList`1 accumulatedResults)
   at Telerik.VSX.Internal.ProjectManagement.ProjectFileLocator.GetProjectItemPaths(String projectItemName)
   at Telerik.VSX.Web.MasterPageProcessing.Locator.RazorMasterPageLocator.GetMasterPagePresent()
   at Telerik.VSX.Web.MasterPageProcessing.ProjectSettingsReader.EnsureMasterPageDetectedInitialized()
   at Telerik.KendoUI.Mvc.VSX.ProjectConfigurators.ProjectConfigurationTypeSelector.GetConfigureProjectPreWizardData(IScenarioDef template)
   at Telerik.KendoUI.Mvc.VSX.ProjectConfigurators.ProjectConfigurationTypeSelector.ProjectConfiguration()
   at Telerik.KendoUI.Mvc.VSX.ProjectConfigurators.StreamlinedProjectConfiguration.StartConfigureWizard()
   at Telerik.VSX.VSPackage.PackageBase.CommandCallback(Object sender, EventArgs e)

 

The problem also occurs when i try the configure project option. 

 

From what i can see there are 2 potential areas

1 - Our project has a fullstop in the project name ie [PROJECT].UI

This is part of our in house naming convention, but i don't know how the system would have worked with it before but not now

2 - We moved a lot of our scripts into a shared project, including the required kendo scripts / css, which hasn't been an issue, but maybe thats what might be causing this.

Any help would be appreciated.

Nikola
Telerik team
commented on 07 Sep 2022, 08:26 AM

Hello James,

The error is in the logic which tries to retrieve the master page for the selected project. For this, we enumerate all project items, files and folders that are part of the project, and if one or more of them have illegal characters in their path the wizard will fail. We need the master page to update the references scripts/styles and/or change the theme used in the case of the Configure Wizard.

I have logged an item to handle this case in the wizards and in the meantime, you could upgrade the project manually by following the steps outlined in this article.

Please try that and let us know if it worked out.

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
James
Top achievements
Rank 1
Share this question
or