Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The given assembly name or codebase was invalid #84

Closed
tznind opened this issue Aug 4, 2020 · 0 comments · Fixed by #85
Closed

The given assembly name or codebase was invalid #84

tznind opened this issue Aug 4, 2020 · 0 comments · Fixed by #85

Comments

@tznind
Copy link
Contributor

tznind commented Aug 4, 2020

Describe the bug
When setting a ProcessTaskArgument from CLI to an array of objects.

To Reproduce
Steps to reproduce the behavior:

  1. Run on command line: ./rdmp cmd set ProcessTaskArgument:TablesToIsolate Value 1,2,3,4,5,6

Expected behavior
Value should be set to TableInfo objects 1-6

Screenshots
https://travis-ci.com/github/SMI/Integration/builds/178383562#L1737

RDMP Version
v4.1.5

Error with Stack Trace

Problem line was 'set ProcessTaskArgument:TablesToIsolate Value 1,2,3,4,5,6':The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047) . 

2020-08-04 09:52:25.1594 INFO Fatal error occurred so returning -1 . System.Exception: Error executing script.  Problem line was 'set ProcessTaskArgument:TablesToIsolate Value 1,2,3,4,5,6':The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047) ---> System.IO.FileLoadException: The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)

   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type, ObjectHandleOnStack keepalive)

   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)

   at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)

   at System.Type.GetType(String typeName)

   at Rdmp.Core.Repositories.MEF.GetType(String type)

   at Rdmp.Core.CommandLine.Interactive.Picking.PickObjectByName.IsLegitType(String possibleTypeName, Type& t)

   at Rdmp.Core.CommandLine.Interactive.Picking.PickObjectByName.IsMatch(String arg, Int32 idx)

   at System.Linq.Enumerable.WhereEnumerableIterator`1.ToArray()

   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)

   at Rdmp.Core.CommandLine.Interactive.Picking.CommandLineObjectPicker.ParseValue(String arg, Int32 idx)

   at System.Linq.Enumerable.SelectIterator[TSource,TResult](IEnumerable`1 source, Func`3 selector)+MoveNext()

   at System.Collections.Generic.List`1.AddEnumerable(IEnumerable`1 enumerable)

   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)

   at Rdmp.Core.CommandLine.Interactive.Picking.CommandLineObjectPicker..ctor(IEnumerable`1 args, IRDMPPlatformRepositoryServiceLocator repositoryLocator)

   at Rdmp.Core.CommandLine.Runners.ExecuteCommandRunner.GetCommandAndPickerFromLine(String command, CommandLineObjectPicker& picker, IRDMPPlatformRepositoryServiceLocator repositoryLocator)

   at Rdmp.Core.CommandLine.Runners.ExecuteCommandRunner.RunScript(RdmpScript script, IRDMPPlatformRepositoryServiceLocator repositoryLocator)

   --- End of inner exception stack trace ---

   at Rdmp.Core.CommandLine.Runners.ExecuteCommandRunner.RunScript(RdmpScript script, IRDMPPlatformRepositoryServiceLocator repositoryLocator)

   at Rdmp.Core.CommandLine.Runners.ExecuteCommandRunner.Run(IRDMPPlatformRepositoryServiceLocator repositoryLocator, IDataLoadEventListener listener, ICheckNotifier checkNotifier, GracefulCancellationToken token)

   at Rdmp.Core.Program.Run(RDMPCommandLineOptions opts)

   at Rdmp.Core.Program.HandleArguments(String[] args)
tznind added a commit that referenced this issue Aug 4, 2020
@tznind tznind closed this as completed in #85 Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant