title: The given key was not present in the dictionary exception
body: <p>I have a websocket server writed in c#C#. When i'm handling a packet from client in the server I get the error:</p>
  <p><code>The given key ´4´ was not present in the dictionary.</code></p>
  <p>This key exist. Other keys doesn't has this problem. The code pass the if statement.</p>
  <pre><code>string rawdata = Encoding.UTF8.GetString(decoded);
  string[] msgdata = rawdata.Split(&quot;--&quot;);
  
  int funcId = int.Parse(msgdata[0]);
  
  if (Server.packetHandlersWS.ContainsKey(funcId)) {
      Server.packetHandlersWS[funcId](id, msgdata);
  }
  </code></pre>
  <p>I tried cleanup on my project, i've tried delet the .pdb files in the project and rebuild. None of this fixes the problem.</p>