Troubleshooting "KeyNotFoundException: The given key was not present in the dictionary."
peetonn
✭
in Photon Bolt
trying to troubleshoot what's wrong with my code. Getting this exception:
```
KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2[Bolt.UniqueId,Bolt.IFactory].get_Item (UniqueId key) [0x000a8] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:151
at Bolt.Factory.GetFactory (UniqueId id) [0x00000] in :0
at BoltCore.Attach (UnityEngine.GameObject gameObject, EntityFlags flags, IProtocolToken attachToken) [0x00000] in :0
at BoltCore.Attach (UnityEngine.GameObject gameObject, EntityFlags flags) [0x00000] in :0
at BoltCore.UpdateSceneObjectsLookup () [0x00000] in :0
at BoltCore.SceneLoadDone (SceneLoadState state) [0x00000] in :0
at BoltSceneLoader.Update () [0x00000] in :0
```
Tried re-compiling assemblies multiple times. Where else should look into to figure this out?
Thanks,
```
KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2[Bolt.UniqueId,Bolt.IFactory].get_Item (UniqueId key) [0x000a8] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:151
at Bolt.Factory.GetFactory (UniqueId id) [0x00000] in :0
at BoltCore.Attach (UnityEngine.GameObject gameObject, EntityFlags flags, IProtocolToken attachToken) [0x00000] in :0
at BoltCore.Attach (UnityEngine.GameObject gameObject, EntityFlags flags) [0x00000] in :0
at BoltCore.UpdateSceneObjectsLookup () [0x00000] in :0
at BoltCore.SceneLoadDone (SceneLoadState state) [0x00000] in :0
at BoltSceneLoader.Update () [0x00000] in :0
```
Tried re-compiling assemblies multiple times. Where else should look into to figure this out?
Thanks,
0
Comments
-
We answered this from you http://forum.photonengine.com/discussion/12226/exception-the-given-key-was-not-present0