Dear Experts,
Help will be appreciated, Thanks in advance!!!
I am trying to create custom activity by referring the guide. Creating a Custom Activity (uipath.com)
I am facing below error:
Logs:
00:18:38.5590 => [ERROR] [UiPath.Studio.Launcher.exe] [13] System.IO.FileNotFoundException: Could not load file or assembly ‘System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the file specified.
File name: ‘System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’
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.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(RuntimeAssembly assembly, RuntimeType caType)
at System.Reflection.RuntimeAssembly.GetCustomAttributes(Type attributeType, Boolean inherit)
at System.Attribute.GetCustomAttributes(Assembly element, Boolean inherit)
at UiPath.Studio.App.Assemblies.AssemblyLoaderUtils.TryLoadAssembly(IDictionary2 cache, IReadOnlyDictionary
2 binAssemblies, String path, Assembly& assembly)
=== Pre-bind state information ===
LOG: DisplayName = System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
(Fully-specified)
LOG: Appbase = file:///C:/Program Files/UiPath/Studio/net461/
LOG: Initial PrivatePath = NULL
Calling assembly : ClassMathCustomActivity, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
LOG: This bind starts in LoadFrom load context.
WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().
LOG: Using application configuration file: C:\Program Files\UiPath\Studio\net461\UiPath.Studio.Launcher.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
LOG: Attempting download of new URL file:///C:/Program Files/UiPath/Studio/net461/System.Runtime.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Major Version
LOG: Attempting download of new URL file:///C:/Program Files/UiPath/Studio/net461/System.Runtime/System.Runtime.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/UiPath/Studio/net461/System.Runtime.EXE.
LOG: Attempting download of new URL file:///C:/Program Files/UiPath/Studio/net461/System.Runtime/System.Runtime.EXE.
LOG: Attempting download of new URL file:///C:/Users/SHDES6/.nuget/packages/custommathfunction.activities/1.0.0/lib/System.Runtime.DLL.
LOG: Attempting download of new URL file:///C:/Users/SHDES6/.nuget/packages/custommathfunction.activities/1.0.0/lib/System.Runtime/System.Runtime.DLL.
LOG: Attempting download of new URL file:///C:/Users/SHDES6/.nuget/packages/custommathfunction.activities/1.0.0/lib/System.Runtime.EXE.
LOG: Attempting download of new URL file:///C:/Users/SHDES6/.nuget/packages/custommathfunction.activities/1.0.0/lib/System.Runtime/System.Runtime.EXE.
UiPath Version : 2021.10.4
Visual Studio : 2022