Skip to content

Instantly share code, notes, and snippets.

@khionu
Created November 29, 2016 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save khionu/a69ab39950035e9533a0484d7627671d to your computer and use it in GitHub Desktop.
Save khionu/a69ab39950035e9533a0484d7627671d to your computer and use it in GitHub Desktop.
System.InvalidCastException:
[A]ReplGlobals cannot be cast to [B]ReplGlobals.
Type A originates from 'SelfBot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'C:\Users\Khionu\Documents\Visual Studio 2017\Projects\SelfBot\SelfBot\bin\Debug\netcoreapp1.1\SelfBot.dll'.
Type B originates from 'SelfBot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'C:\Users\Khionu\Documents\Visual Studio 2017\Projects\SelfBot\SelfBot\bin\Debug\netcoreapp1.1\SelfBot.dll'.
at Submission#0..ctor(Object[] submissionArray)
at Submission#0.<Factory>(Object[] submissionArray)
at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.<RunSubmissionsAsync>d__9`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Scripting.Script`1.<RunSubmissionsAsync>d__21.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at SelfBot.Services.Eval.ReplSession.<replCodeHandler>d__16.MoveNext() in C:\Users\Khionu\Documents\Visual Studio 2017\Projects\SelfBot\SelfBot\Services\Eval\ReplSession.cs:line 122} System.InvalidCastException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment