This is a migrated thread and some comments may be shown as answers.

Custom Action error when extension touches references

9 Answers 447 Views
Visual Studio Extensions
This is a migrated thread and some comments may be shown as answers.
Kaya
Top achievements
Rank 1
Kaya asked on 13 Jul 2011, 06:03 PM
I'm using the Q2 2011 Radcontrols for Winforms and, whenever I use one of the extension commands that modify project references like:
  • Convert to Telerik WinForms Applications
  • Configure Project
  • Upgrade Wizard

I get the dialog with the available Components and Themes, but, when I click Finish, I receive an error that says:

Error executing custom action 
Telerik.WinControls.VSX.Actions.UpdateReferencesAction: Object reference not set to an instance of an object.

I do not receive this error if I remove all COM, Project, and external dll references from that project prior to launching the dialog.  Is this expected?  The Radcontrols work fine as long as I add the references manually or let VS do the work by dragging the control from the toolbox.  For the record, I'm a brand new user so I can't say if this worked with previous versions.

Thanks!

9 Answers, 1 is accepted

Sort by
0
Kaya
Top achievements
Rank 1
answered on 13 Jul 2011, 06:43 PM
I've done some more testing and COM references appear to mess this up in all cases.  Project references only cause a problem if the Project name is different than the Assembly name.  External DLLs work fine.
0
Andrey
Telerik team
answered on 14 Jul 2011, 12:48 PM
Hello Kaya,

I am sorry to hear you are experiencing issues like the ones you describe.

We have identified some issues with the latest Upgrade Wizards. In the most common cases, the workaround is simply rebuilding your solution and running our wizard again.

We will do our best to fix the issue and deliver an update for the Visual Studio Extensions mid next week.

Please, bear with us some more.

All the best,
Andrey
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
John
Top achievements
Rank 1
answered on 19 Jul 2011, 08:39 PM
I get this as well. In my case it was a  reference to a missing assembly.  Once I removed that reference, the wizard worked OK.
0
Marcel Härry
Top achievements
Rank 1
answered on 29 Jul 2011, 10:43 AM
Same Problem here:
All uninstalled, reinstalled has not helped. Creating new project and Convert to Telerik Site works, but no way with existing one.

Any help apreciated.
Marcel

0
Erjan Gavalji
Telerik team
answered on 29 Jul 2011, 12:24 PM
Hi guys,

@John, glad the problem is fixed on your side and thanks for sharing!
@Marcel, the problem is fixed now. Can you check the workaround, described in the Q2 2011 Upgrade Wizard Issues Resolved post?

Kind regards,
Erjan Gavalji
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Marcel Härry
Top achievements
Rank 1
answered on 29 Jul 2011, 09:10 PM
problem solved, thank you
Marcel
0
Kemal
Top achievements
Rank 1
answered on 17 Nov 2020, 08:23 AM
Hi.I am having this problem now, 17/11/2020
0
Kemal
Top achievements
Rank 1
answered on 17 Nov 2020, 11:24 AM

An error occurred while running the wizard.

Occured after last update (2020.3.915) and can not resolve it.

Error executing custom action Telerik.WinControls.VSX.Actions.AddDesignAssembliesToGACAction: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\*******\AppData\Local\Temp\Telerik\ShadowCopy\Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml, Version=2020.3.1019.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7\Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml.dll'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
   at System.IO.File.Copy(String sourceFileName, String destFileName)
   at Telerik.VSX.Internal.FileSystem.FileOperator.Copy(String sourceFileName, String destinationFileName)
   at Telerik.VSX.Internal.Assembly.AssemblyLoader.GetShadowCopy(String assemblyPath)
   at Telerik.VSX.Internal.Assembly.AssemblyLoader.ReflectionOnlyLoadFromShadowCopy(String loadInformation)
   at Telerik.VSX.DistributionListing.DistributionItem.GetReferencedAssemblies()
   at Telerik.VSX.DistributionListing.DistributionItem.GetFilteredPrerequisites()
   at Telerik.VSX.DistributionListing.DistributionItem.get_DistributionWidePrerequisites()
   at Telerik.VSX.DistributionListing.DistributionItemList.IntegrityCapableItem.ResetUnmetPrerequisites()
   at Telerik.VSX.DistributionListing.DistributionItemList.Add(IDistributionItem newDistributionItem)
   at Telerik.VSX.DistributionListing.FileBasedDistribution.PopulateItems(DistributionItemList items)
   at Telerik.VSX.DistributionListing.Distribution.get_Items()
   at Telerik.VSX.Helpers.DesignAssemblyGacHelper.GetDesignerAssembliesMissingFromGAC()
   at Telerik.VSX.Actions.AddDesignAssembliesToGACAction.AddDesignAssembliesToGAC()
   at Telerik.VSX.Actions.AddDesignAssembliesToGACAction.Execute(WizardContext wizardContext, IPropertyDataDictionary arguments)
   at Telerik.VSX.WizardEngine.Actions.ActionBase.Telerik.WizardFramework.IAction.Execute(IWizardContext wizardContext, IPropertyDataDictionary arguments)
   at Telerik.VSX.WizardEngine.ActionManager.ExecActions()

0
Nikola
Telerik team
answered on 17 Nov 2020, 03:04 PM

Hi Kemal,

I have replied in the Support thread you have opened and I suggest to continue the communication there so that everything is at the same place.

For benefit of everyone, the issue with the DirectoryNotFoundException was fixed with version 2020.3.1117 of the VSExtensions.

Regards,
Nikola
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Visual Studio Extensions
Asked by
Kaya
Top achievements
Rank 1
Answers by
Kaya
Top achievements
Rank 1
Andrey
Telerik team
John
Top achievements
Rank 1
Marcel Härry
Top achievements
Rank 1
Erjan Gavalji
Telerik team
Kemal
Top achievements
Rank 1
Nikola
Telerik team
Share this question
or