Error while opening the Packages manager window

studio
package
p_qa

#1

Hello,

I can’t acces to the package manager on my studio. You can see below the window displayed when i click on “manage package”

I already try to uninstall/reinstall the solution, and all the packages files seems to be at the rigth place in my directory, but the same error continue to pop up.

May be there is a way to install the package manually and restart the studio ?

Thanks for your help !


Getting following error while clicking package manager in UIpath
Manage Packages not working getting exception
Manage packages Exception Error
#2

Hi bmuto,

You can try an uninstall again, restart and then delete by hand any left over Uipath folders/files, from ProgramData, your user AppData, Program Files, Temp etc… and try again with the latest available Uipath Studio kit.


#3

Hello,

I’ve just encountered a similar error on 2016.2.6274 version of Studio.
I tried opening the package manager a few times and received this error every time, but after restarting Studio it no longer occurs.
Unfortunately I’m unable to reproduce, but it might help knowing that I’m using a poor Internet connection.

Screenshot:

Studio log extract:

12:32:45:467 => [INFO] [Orchestra.DotNetPatchHelper] [1]
12:32:45:467 => [INFO] [Orchestra.DotNetPatchHelper] [1] ================================================================================================
12:32:45:467 => [INFO] [Orchestra.DotNetPatchHelper] [1]
12:32:45:467 => [INFO] [Orchestra.DotNetPatchHelper] [1] [TargetInvocationException] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.Runtime.Serialization.SerializationException: Type ‘Orc.NuGetExplorer.PackageDetails’ with data contract name ‘PackageDetails:http://schemas.datacontract.org/2004/07/Orc.NuGetExplorer’ is not expected. Consider using a DataContractResolver if you are using DataContractSerializer or add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to the serializer.
at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeAndVerifyType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, Boolean verifyKnownType, RuntimeTypeHandle declaredTypeHandle, Type declaredType)
at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithXsiType(XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle objectTypeHandle, Type objectType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle, Type declaredType)
at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
at WriteArrayOfanyTypeToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , CollectionDataContract )
at System.Runtime.Serialization.CollectionDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)
at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
at System.Runtime.Serialization.DataContractSerializer.InternalWriteObjectContent(XmlWriterDelegator writer, Object graph, DataContractResolver dataContractResolver)
at System.Runtime.Serialization.DataContractSerializer.InternalWriteObjectContent(XmlWriterDelegator writer, Object graph)
at System.Runtime.Serialization.XmlObjectSerializer.WriteObjectContentHandleExceptions(XmlWriterDelegator writer, Object graph)
at System.Runtime.Serialization.DataContractSerializer.WriteObjectContent(XmlWriter writer, Object graph)
at Catel.Runtime.Serialization.Xml.XmlSerializer.WriteXmlElement(ISerializationContext1 context, XElement element, String elementName, MemberValue memberValue, Type modelType) at Catel.Runtime.Serialization.Xml.XmlSerializer.SerializeMember(ISerializationContext1 context, MemberValue memberValue)
at Catel.Runtime.Serialization.SerializerBase1.SerializeMembers(ISerializationContext1 context, List1 membersToSerialize) at Catel.Runtime.Serialization.SerializerBase1.SerializeMembers(Object model, Stream stream, String[] membersToIgnore)
at Catel.Data.ModelBase.BackupData.CreateBackup()
at Catel.Data.ModelBase.System.ComponentModel.IEditableObject.BeginEdit()
at Catel.Data.EditableObjectHelper.BeginEditObject(Object obj)
at Catel.MVVM.ViewModelBase.InitializeModelInternal(String modelProperty, Object model)
at Catel.MVVM.ViewModelBase.OnPropertyChanged(AdvancedPropertyChangedEventArgs e)
at Catel.Data.ModelBase.RaisePropertyChanged(Object sender, PropertyChangedEventArgs e, Boolean setDirtyAndAllowAutomaticValidation, Boolean isRefreshCallOnly)
at Catel.MVVM.ViewModelBase.RaisePropertyChanged(Object sender, AdvancedPropertyChangedEventArgs e)
at Catel.Data.ModelBase.SetValue(PropertyData property, Object value, Boolean notifyOnChange, Boolean validateAttributes)
at Catel.Data.ModelBase.SetValue(PropertyData property, Object value)
at Orc.NuGetExplorer.ViewModels.ExplorerViewModel…ctor(IRepositoryNavigatorService repositoryNavigatorService, ISearchSettingsService searchSettingsService, IPackageCommandService packageCommandService, IPleaseWaitService pleaseWaitService, IPackageQueryService packageQueryService, ISearchResultService searchResultService, IDispatcherService dispatcherService, IPackagesUpdatesSearcherService packagesUpdatesSearcherService, IPackageBatchService packageBatchService, IPackageOperationNotificationService packageOperationNotificationService, INuGetConfigurationService nuGetConfigurationService, IConfigurationService configurationService, IUIVisualizerService uiVisualizerService)
— End of inner exception stack trace —
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Catel.IoC.TypeFactory.TryCreateToConstruct(Type typeToConstruct, ConstructorInfo constructor, Object tag, Object[] parameters, Boolean checkConstructor, Boolean hasMoreConstructorsLeft)
at Catel.IoC.TypeFactory.CreateInstanceWithSpecifiedParameters(Type typeToConstruct, Object tag, Object[] parameters, Boolean autoCompleteDependencies, Boolean preventCircularDependencies)
at Catel.IoC.TypeFactory.CreateInstanceWithTag(Type typeToConstruct, Object tag)
at Catel.MVVM.ViewModelFactory.CreateViewModel(Type viewModelType, Object dataContext, Object tag)
at Catel.MVVM.ViewModelFactory.CreateViewModel(Type viewModelType, Object dataContext)
at Catel.Services.IUIVisualizerServiceExtensions.ShowDialog[TViewModel](IUIVisualizerService uiVisualizerService, Object model, EventHandler1 completedProc) at Orc.NuGetExplorer.PackagesUIService.ShowPackagesExplorer(String searchFilter) at UiPath.Workflow.ToolboxViewModel.ShowPackagesWindow(String searchText) 12:32:45:467 => [INFO] [Orchestra.DotNetPatchHelper] [1] 12:32:45:467 => [INFO] [Orchestra.DotNetPatchHelper] [1] ================================================================================================ 12:32:45:467 => [INFO] [Orchestra.DotNetPatchHelper] [1] 12:32:45:472 => [INFO] [Orchestra.DotNetPatchHelper] [1] [TargetInvocationException] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.Serialization.SerializationException: Type 'Orc.NuGetExplorer.PackageDetails' with data contract name 'PackageDetails:http://schemas.datacontract.org/2004/07/Orc.NuGetExplorer' is not expected. Consider using a DataContractResolver if you are using DataContractSerializer or add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to the serializer. at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeAndVerifyType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, Boolean verifyKnownType, RuntimeTypeHandle declaredTypeHandle, Type declaredType) at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithXsiType(XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle objectTypeHandle, Type objectType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle, Type declaredType) at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle) at WriteArrayOfanyTypeToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , CollectionDataContract ) at System.Runtime.Serialization.CollectionDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context) at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle) at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle) at System.Runtime.Serialization.DataContractSerializer.InternalWriteObjectContent(XmlWriterDelegator writer, Object graph, DataContractResolver dataContractResolver) at System.Runtime.Serialization.DataContractSerializer.InternalWriteObjectContent(XmlWriterDelegator writer, Object graph) at System.Runtime.Serialization.XmlObjectSerializer.WriteObjectContentHandleExceptions(XmlWriterDelegator writer, Object graph) at System.Runtime.Serialization.DataContractSerializer.WriteObjectContent(XmlWriter writer, Object graph) at Catel.Runtime.Serialization.Xml.XmlSerializer.WriteXmlElement(ISerializationContext1 context, XElement element, String elementName, MemberValue memberValue, Type modelType)
at Catel.Runtime.Serialization.Xml.XmlSerializer.SerializeMember(ISerializationContext1 context, MemberValue memberValue) at Catel.Runtime.Serialization.SerializerBase1.SerializeMembers(ISerializationContext1 context, List1 membersToSerialize)
at Catel.Runtime.Serialization.SerializerBase1.SerializeMembers(Object model, Stream stream, String[] membersToIgnore) at Catel.Data.ModelBase.BackupData.CreateBackup() at Catel.Data.ModelBase.System.ComponentModel.IEditableObject.BeginEdit() at Catel.Data.EditableObjectHelper.BeginEditObject(Object obj) at Catel.MVVM.ViewModelBase.InitializeModelInternal(String modelProperty, Object model) at Catel.MVVM.ViewModelBase.OnPropertyChanged(AdvancedPropertyChangedEventArgs e) at Catel.Data.ModelBase.RaisePropertyChanged(Object sender, PropertyChangedEventArgs e, Boolean setDirtyAndAllowAutomaticValidation, Boolean isRefreshCallOnly) at Catel.MVVM.ViewModelBase.RaisePropertyChanged(Object sender, AdvancedPropertyChangedEventArgs e) at Catel.Data.ModelBase.SetValue(PropertyData property, Object value, Boolean notifyOnChange, Boolean validateAttributes) at Catel.Data.ModelBase.SetValue(PropertyData property, Object value) at Orc.NuGetExplorer.ViewModels.ExplorerViewModel..ctor(IRepositoryNavigatorService repositoryNavigatorService, ISearchSettingsService searchSettingsService, IPackageCommandService packageCommandService, IPleaseWaitService pleaseWaitService, IPackageQueryService packageQueryService, ISearchResultService searchResultService, IDispatcherService dispatcherService, IPackagesUpdatesSearcherService packagesUpdatesSearcherService, IPackageBatchService packageBatchService, IPackageOperationNotificationService packageOperationNotificationService, INuGetConfigurationService nuGetConfigurationService, IConfigurationService configurationService, IUIVisualizerService uiVisualizerService) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Catel.IoC.TypeFactory.TryCreateToConstruct(Type typeToConstruct, ConstructorInfo constructor, Object tag, Object[] parameters, Boolean checkConstructor, Boolean hasMoreConstructorsLeft) at Catel.IoC.TypeFactory.CreateInstanceWithSpecifiedParameters(Type typeToConstruct, Object tag, Object[] parameters, Boolean autoCompleteDependencies, Boolean preventCircularDependencies) at Catel.IoC.TypeFactory.CreateInstanceWithTag(Type typeToConstruct, Object tag) at Catel.MVVM.ViewModelFactory.CreateViewModel(Type viewModelType, Object dataContext, Object tag) at Catel.MVVM.ViewModelFactory.CreateViewModel(Type viewModelType, Object dataContext) at Catel.Services.IUIVisualizerServiceExtensions.ShowDialog[TViewModel](IUIVisualizerService uiVisualizerService, Object model, EventHandler1 completedProc)
at Orc.NuGetExplorer.PackagesUIService.ShowPackagesExplorer(String searchFilter)
at UiPath.Workflow.ToolboxViewModel.ShowPackagesWindow(String searchText)
— End of inner exception stack trace —
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Caliburn.Micro.ActionMessage.<>c.<.cctor>b__33_0(ActionExecutionContext context)
at Caliburn.Micro.ActionMessage.Invoke(Object eventArgs)
at System.Windows.Interactivity.TriggerBase.InvokeActions(Object parameter)
at System.Windows.Interactivity.EventTriggerBase.OnEvent(EventArgs eventArgs)
at System.Windows.Interactivity.EventTriggerBase.OnEventImpl(Object sender, EventArgs eventArgs)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)


#4

Hi @bmuto,

What installer did you have when that error occured? .exe or .msi?


#5

@ovi - hello I’m doing training and someone has this problem. We used both the .exe and the .msi and still not working. I think there have been multiple versions of the software on the machine. It was working earlier this week but this started happening when the msi installer asked to re-install.

Any ideas?


#6

does that machine has or had any visual studio version installed on it?
check studio logs for this error please : https://stackoverflow.com/questions/28339116/not-allowed-to-load-assembly-from-network-location


#7

Hi both,

This has now happened on my machine. I haven’t tried the uninstall yet - I simply went to manage packages (Available) nothing worked initially so I closed the window down. Next time I went to manage packages and this error appeared.

Version 2017.1.6435. I do not have Visual Studio installed on this machine and never have.

Happy for you to log on to my machine if you want to test anything.

RD


#8

we are investigating this issue, if we need more info i will contact you, thank you very much


#9

I have uninstall and install this software again. But still facing the same error as above.


#10

What version are you using exactly? Is it Community?
Whats happening - can you share more details and can we have a fresh Studio log uploaded here to investigate?


#11

I am using Studio 2018.1.4 Community Edition


#12

This appears when opening package manager? Or when trying to install a package?
Can you send studio logs please?


#13

this appears when i click on package manager button


#14

Hi @anujs ,
Can you uninstall and reinstall the CE again. May be it will solve the problem.

Regards
Balamurugan


#15

i have done this before


#16

Hi I am getting similar error(Excel application scope : Exception has been thrown by the target of an invocation.) in Excel application scope, Can someone please help me with it.

This is coming when i am opening the excel file.