Suddenly I couldn’t run my app anymore because of this error. I have reduced the code finding it was this one causing it:
<JavaScript File="MainView.js" />
But even when commenting out everything in the external MainView.js file it want preview anymore.
# Oops!
The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException () [0x00000] in <filename unknown>:0
at System.Collections.Generic.Dictionary`2[System.String,Outracks.Simulator.ByteFileSource].get_Item (System.String key) [0x00000] in <filename unknown>:0
at Outracks.Simulator.FileCache.GetFileSource (System.String path) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.TryInvokeExtension.Try (System.Func`1 func) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.TryInvokeExtension.TryInvoke (System.Reflection.MethodInfo mi, System.Object obj, System.Object[] value) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.CompiledTypeReflection.CallStatic (Outracks.Simulator.Bytecode.TypeName typeName, Outracks.Simulator.Bytecode.TypeMemberName methodName, System.Object[] arguments) [0x00000] in <filename unknown>:0
at Outracks.Fuse.Preview.PreviewLocally+<HookUpReflectionInterface>c__AnonStorey3.<>m__1 (System.String a, System.String b, System.Object[] c) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Reflection.DelegateReflection.Outracks.Simulator.Runtime.IReflection.CallStatic (Outracks.Simulator.Bytecode.TypeName typeName, Outracks.Simulator.Bytecode.TypeMemberName methodName, System.Object[] arguments) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Evaluate (Outracks.Simulator.Bytecode.CallStaticMethod m) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Bytecode.Expression.Match[Object] (System.Func`2 a1, System.Func`2 a2, System.Func`2 a3, System.Func`2 a4, System.Func`2 a5, System.Func`2 a6, System.Func`2 a7, System.Func`2 a8, System.Func`2 a9, System.Func`2 a10, System.Func`2 a11, System.Func`2 a12, System.Func`2 a13, System.Func`2 a15, System.Func`2 a16) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Evaluate (Outracks.Simulator.Bytecode.Expression expression) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Evaluate (Outracks.Simulator.Bytecode.WriteProperty p) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Bytecode.Expression.Match[Object] (System.Func`2 a1, System.Func`2 a2, System.Func`2 a3, System.Func`2 a4, System.Func`2 a5, System.Func`2 a6, System.Func`2 a7, System.Func`2 a8, System.Func`2 a9, System.Func`2 a10, System.Func`2 a11, System.Func`2 a12, System.Func`2 a13, System.Func`2 a15, System.Func`2 a16) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Evaluate (Outracks.Simulator.Bytecode.Expression expression) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Execute (IEnumerable`1 statements) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Execute (Outracks.Simulator.Bytecode.Lambda lambda, System.Object[] arguments) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.LambdaClosure.Func (System.Object a1) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Execute (System.Object lambda, System.Object[] arguments) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Evaluate (Outracks.Simulator.Bytecode.CallLambda i) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Bytecode.Expression.Match[Object] (System.Func`2 a1, System.Func`2 a2, System.Func`2 a3, System.Func`2 a4, System.Func`2 a5, System.Func`2 a6, System.Func`2 a7, System.Func`2 a8, System.Func`2 a9, System.Func`2 a10, System.Func`2 a11, System.Func`2 a12, System.Func`2 a13, System.Func`2 a15, System.Func`2 a16) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Evaluate (Outracks.Simulator.Bytecode.Expression expression) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Execute (IEnumerable`1 statements) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Execute (Outracks.Simulator.Bytecode.Lambda lambda, System.Object[] arguments) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.LambdaClosure.Func (System.Object a1) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.LambdaClosure.Action (System.Object a1) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Execute (System.Object lambda, System.Object[] arguments) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Evaluate (Outracks.Simulator.Bytecode.CallLambda i) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Bytecode.Expression.Match[Object] (System.Func`2 a1, System.Func`2 a2, System.Func`2 a3, System.Func`2 a4, System.Func`2 a5, System.Func`2 a6, System.Func`2 a7, System.Func`2 a8, System.Func`2 a9, System.Func`2 a10, System.Func`2 a11, System.Func`2 a12, System.Func`2 a13, System.Func`2 a15, System.Func`2 a16) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Evaluate (Outracks.Simulator.Bytecode.Expression expression) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Execute (IEnumerable`1 statements) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Execute (Outracks.Simulator.Bytecode.Lambda lambda, System.Object[] arguments) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.VirtualMachine.Execute (IReflection reflection, Outracks.Simulator.Bytecode.Lambda lambda, System.Object[] arguments) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.VirtualMachine.Execute (Outracks.Simulator.Bytecode.Lambda lambda, System.Object[] arguments) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Reifying.OnEnterState () [0x00000] in <filename unknown>:0
at Outracks.Simulator.Application.SetState (Outracks.Simulator.State nextState) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Application.OnUpdate () [0x00000] in <filename unknown>:0
at Fuse.App.Update () [0x00000] in <filename unknown>:0
_wapi_handle_unref_full: Attempting to unref unused handle 0x462
_wapi_handle_unref_full: Attempting to unref unused handle 0x465
_wapi_handle_unref_full: Attempting to unref unused handle 0x468
_wapi_handle_unref_full: Attempting to unref unused handle 0x40d
_wapi_handle_unref_full: Attempting to unref unused handle 0x4ff
_wapi_handle_unref_full: Attempting to unref unused handle 0x4fc
_wapi_handle_unref_full: Attempting to unref unused handle 0x440
_wapi_handle_unref_full: Attempting to unref unused handle 0x448
_wapi_handle_unref_full: Attempting to unref unused handle 0x450
_wapi_handle_unref_full: Attempting to unref unused handle 0x49e
_wapi_handle_unref_full: Attempting to unref unused handle 0x4a1
_wapi_handle_unref_full: Attempting to unref unused handle 0x4a4
_wapi_handle_unref_full: Attempting to unref unused handle 0x486
_wapi_handle_unref_full: Attempting to unref unused handle 0x483
_wapi_handle_unref_full: Attempting to unref unused handle 0x480
_wapi_handle_unref_full: Attempting to unref unused handle 0x444
_wapi_handle_unref_full: Attempting to unref unused handle 0x447
_wapi_handle_unref_full: Attempting to unref unused handle 0x44a