asked on October 7, 2016

Hi

 

I have a custom workflow activity which is working fine for many years. Now I have created a new workflow server. At new workflow server I am trying to add all existing workflow activities to designer. All are successfully added except one which is giving following error when trying to add the activity to designer -
 

The toolbox failed to import the activity type 'ShortcutDelete.ShortcutDeleteActivityProxy'. [0437-WF0]

Exception
        System.Exception:
The toolbox failed to import the activity type 'ShortcutDelete.ShortcutDeleteActivityProxy'. [0437-WF0]

Data items: 1
AlreadyLogged: True

Inner Exception
        Exception
                System.Reflection.TargetInvocationException:
Exception has been thrown by the target of an invocation.

        Stack Trace
                at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
                at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
                at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
                at System.Activator.CreateInstance(Type type, Boolean nonPublic)
                at System.Activator.CreateInstance(Type type)
                at Laserfiche.Workflow.Designer.UI.ActivityToolbox.GetActivityTypeInfo(Type type, Boolean useCreationTest, Boolean cacheValue)

Data items: 0

        Inner Exception
                Exception
                        System.InvalidOperationException:
Failed to compare two elements in the array.

                Stack Trace
                        at System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)
                        at System.Collections.Generic.List`1.Sort(Int32 index, Int32 count, IComparer`1 comparer)
                        at Laserfiche.Workflow.ComponentModel.ActivityProxyBase.GetSortedPropertyNames(IComparer`1 comparer)
                        at Laserfiche.Workflow.ComponentModel.ActivityProxyBase.ValidationComparer..ctor(ActivityProxyBase activity)
                        at Laserfiche.Workflow.ComponentModel.ActivityProxyBase..ctor()
                        at Laserfiche.Custom.Activities.CustomSingleEntryActivityProxy..ctor()
                        at ShortcutDelete.ShortcutDeleteActivityProxy..ctor()

Data items: 0

                Inner Exception
                        Exception
                                System.TypeLoadException:
Could not load type 'Laserfiche.Custom.Activities.Design.UseDefaultEntrySelectionEditControlAttribute' from assembly 'Laserfiche.Workflow.Activities.Custom, Version=8.3.0.0, Culture=neutral, PublicKeyToken=d8428ff9263e6cda'.

                        Stack Trace
                                at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)
                                at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
                                at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
                                at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
                                at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
                                at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)
                                at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimePropertyInfo property, RuntimeType caType)
                                at Laserfiche.AttributeHelper.GetAttribute[T](MemberInfo member, Boolean inherit, T defaultValue)
                                at Laserfiche.Workflow.ComponentModel.ActivityProxyBase.PropertyComparer.Compare(PropertyInfo first, PropertyInfo second)
                                at System.Collections.Generic.ArraySortHelper`1.SwapIfGreater(T[] keys, IComparer`1 comparer, Int32 a, Int32 b)
                                at System.Collections.Generic.ArraySortHelper`1.DepthLimitedQuickSort(T[] keys, Int32 left, Int32 right, IComparer`1 comparer, Int32 depthLimit)
                                at System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)

Data items: 0

Also attached is errr file.

Workflow version - 8.3

 

I have also verified in workflow admin console, it is registered there as well in customActivities section.

 

Please let me know thr reason fot this error as well resolution.

 

Thanks

Ravindra Rajpoot

0 0